@@ -13,28 +13,28 @@ module.exports = function( $ ) {
1313 Function . prototype . bind = ( function ( slice ) {
1414 // (C) WebReflection - Mit Style License
1515 function bind ( context ) {
16- var self = this ; // "trapped" function reference
17- // only if there is more than an argument
16+ var self = this ; // "trapped" function reference
17+ // only if there is more than an argument
1818 // we are interested into more complex operations
1919 // this will speed up common bind creation
2020 // avoiding useless slices over arguments
21- if ( 1 < arguments . length ) {
22- // extra arguments to send by default
21+ if ( 1 < arguments . length ) {
22+ // extra arguments to send by default
2323 var $arguments = slice . call ( arguments , 1 ) ;
2424 return function ( ) {
2525 return self . apply (
2626 context ,
2727 // thanks @kangax for this suggestion
2828 arguments . length ?
29- // concat arguments with those received
30- $arguments . concat ( slice . call ( arguments ) ) :
31- // send just arguments, no concat, no slice
32- $arguments
29+ // concat arguments with those received
30+ $arguments . concat ( slice . call ( arguments ) ) :
31+ // send just arguments, no concat, no slice
32+ $arguments
3333 ) ;
3434 } ;
3535 }
36- // optimized callback
37- return function ( ) {
36+ // optimized callback
37+ return function ( ) {
3838 // speed up when function is called without arguments
3939 return arguments . length ? self . apply ( context , arguments ) : self . call ( context ) ;
4040 } ;
@@ -52,8 +52,8 @@ module.exports = function( $ ) {
5252
5353 return function unitTest ( console ) {
5454 /*
55- sanity tests
56- */
55+ sanity tests
56+ */
5757 $ . setTimeout ( function ( ) {
5858 console . log ( 'js-patch setTimeout() test complete' ) ;
5959 } , 100 ) ;
@@ -66,10 +66,10 @@ module.exports = function( $ ) {
6666 var clearAfterRuns = $ . setInterval ( function ( ) {
6767 runs -- ;
6868 if ( runs == 0 ) {
69- $ . clearInterval ( clearAfterRuns ) ;
69+ $ . clearInterval ( clearAfterRuns ) ;
7070 }
7171 if ( runs < 0 ) {
72- console . error ( 'js-patch clearInterval test failed.' ) ;
72+ console . error ( 'js-patch clearInterval test failed.' ) ;
7373 }
7474 } , 100 ) ;
7575 } ;
0 commit comments