aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.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/support.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/support.js')
-rw-r--r--src/support.js8
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";