diff options
author | John Resig <jeresig@gmail.com> | 2011-04-12 15:54:30 -0400 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2011-04-12 15:54:30 -0400 |
commit | e7787cd09805583ff690d9c5e4b4c58a88393bf9 (patch) | |
tree | 4f64d428c17c41181c279e9fe53e76daf6025cf7 /src | |
parent | 34adda3c8805557028adf137d73cc13316c28cc8 (diff) | |
download | jquery-e7787cd09805583ff690d9c5e4b4c58a88393bf9.tar.gz jquery-e7787cd09805583ff690d9c5e4b4c58a88393bf9.zip |
More formatting tweaks.
Diffstat (limited to 'src')
-rw-r--r-- | src/event.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event.js b/src/event.js index d05c37040..275afdf93 100644 --- a/src/event.js +++ b/src/event.js @@ -350,7 +350,7 @@ jQuery.event = { var cur = elem, // IE doesn't like method names with a colon (#3533, #8272) - ontype = type.indexOf(":") < 0? "on" + type : ""; + ontype = type.indexOf(":") < 0 ? "on" + type : ""; // Fire event on the current element, then bubble up the DOM tree do { @@ -362,7 +362,7 @@ jQuery.event = { } // Trigger an inline bound script - if ( ontype &&jQuery.acceptData( cur ) && cur[ ontype ] && cur[ ontype ].apply( cur, data ) === false ) { + if ( ontype && jQuery.acceptData( cur ) && cur[ ontype ] && cur[ ontype ].apply( cur, data ) === false ) { event.result = false; event.preventDefault(); } |