X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fcore.js;h=faba32a72c79aff3f3d7b31f05ae8c0a9ba074c4;hb=61e37d41490aed319a176c6ca7feb95e5505059c;hp=eb67ba19fb6296f0ef9fb294e9661aaf89035795;hpb=36c99dc0c7a745a88488f519b38de811d6d4c8d9;p=jquery.git diff --git a/src/core.js b/src/core.js index eb67ba1..faba32a 100644 --- a/src/core.js +++ b/src/core.js @@ -164,7 +164,7 @@ jQuery.fn = jQuery.prototype = { return this.length; }, - toArray: function(){ + toArray: function() { return slice.call( this, 0 ); }, @@ -258,7 +258,7 @@ jQuery.fn = jQuery.prototype = { }, map: function( callback ) { - return this.pushStack( jQuery.map(this, function(elem, i){ + return this.pushStack( jQuery.map(this, function( elem, i ) { return callback.call( elem, i, elem ); })); }, @@ -379,7 +379,10 @@ jQuery.extend({ }, bindReady: function() { - if ( readyBound ) { return; } + if ( readyBound ) { + return; + } + readyBound = true; // Catch cases where $(document).ready() is called after the @@ -411,7 +414,7 @@ jQuery.extend({ try { toplevel = window.frameElement == null; - } catch(e){} + } catch(e) {} if ( document.documentElement.doScroll && toplevel ) { doScrollCheck();