aboutsummaryrefslogtreecommitdiffstats
path: root/src/core.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2009-12-21 19:58:13 -0500
committerjeresig <jeresig@gmail.com>2009-12-21 19:58:13 -0500
commit61e37d41490aed319a176c6ca7feb95e5505059c (patch)
tree62b7c9bbb5cba5f15c2a134a51dac84b35e0d0ce /src/core.js
parent36c99dc0c7a745a88488f519b38de811d6d4c8d9 (diff)
downloadjquery-61e37d41490aed319a176c6ca7feb95e5505059c.tar.gz
jquery-61e37d41490aed319a176c6ca7feb95e5505059c.zip
Made a number of spacing changes to bring the code more-inline with the jQuery Core Style Guideline.
Diffstat (limited to 'src/core.js')
-rw-r--r--src/core.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/core.js b/src/core.js
index eb67ba19f..faba32a72 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();