mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Made a number of spacing changes to bring the code more-inline with the jQuery Core Style Guideline.
This commit is contained in:
11
src/core.js
11
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();
|
||||
|
||||
Reference in New Issue
Block a user