Ticket #2827: t2827.diff
File t2827.diff, 700 bytes (added by , 14 years ago) |
---|
-
core.js
659 659 var name, i = 0, length = object.length; 660 660 661 661 if ( args ) { 662 if ( length === undefined ) {662 if ( length === undefined || object.constructor == Function ) { 663 663 for ( name in object ) 664 664 if ( callback.apply( object[ name ], args ) === false ) 665 665 break; … … 670 670 671 671 // A special, fast, case for the most common use of each 672 672 } else { 673 if ( length === undefined ) {673 if ( length === undefined || object.constructor == Function ) { 674 674 for ( name in object ) 675 675 if ( callback.call( object[ name ], name, object[ name ] ) === false ) 676 676 break;