]> source.dussan.org Git - jquery.git/commitdiff
More formatting tweaks.
authorJohn Resig <jeresig@gmail.com>
Tue, 12 Apr 2011 19:54:30 +0000 (15:54 -0400)
committerJohn Resig <jeresig@gmail.com>
Tue, 12 Apr 2011 19:54:30 +0000 (15:54 -0400)
src/event.js

index d05c370406fd0712a5d39deab6e9de870b158ab5..275afdf93867653cadccc942a37e35856fd543c6 100644 (file)
@@ -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();
                        }