diff options
author | jeresig <jeresig@gmail.com> | 2009-12-21 19:58:13 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2009-12-21 19:58:13 -0500 |
commit | 61e37d41490aed319a176c6ca7feb95e5505059c (patch) | |
tree | 62b7c9bbb5cba5f15c2a134a51dac84b35e0d0ce /src/support.js | |
parent | 36c99dc0c7a745a88488f519b38de811d6d4c8d9 (diff) | |
download | jquery-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/support.js')
-rw-r--r-- | src/support.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/support.js b/src/support.js index ef5f01021..097866c28 100644 --- a/src/support.js +++ b/src/support.js @@ -1,4 +1,4 @@ -(function(){ +(function() { jQuery.support = {}; @@ -56,7 +56,7 @@ script.type = "text/javascript"; try { script.appendChild( document.createTextNode( "window." + id + "=1;" ) ); - } catch(e){} + } catch(e) {} root.insertBefore( script, root.firstChild ); @@ -71,7 +71,7 @@ root.removeChild( script ); if ( div.attachEvent && div.fireEvent ) { - div.attachEvent("onclick", function click(){ + div.attachEvent("onclick", function click() { // Cloning a node shouldn't copy over any // bound event handlers (IE does this) jQuery.support.noCloneEvent = false; @@ -83,7 +83,7 @@ // Figure out if the W3C box model works as expected // document.body must exist before we can do this // TODO: This timeout is temporary until I move ready into core.js. - jQuery(function(){ + jQuery(function() { var div = document.createElement("div"); div.style.width = div.style.paddingLeft = "1px"; |