From e7787cd09805583ff690d9c5e4b4c58a88393bf9 Mon Sep 17 00:00:00 2001 From: John Resig Date: Tue, 12 Apr 2011 15:54:30 -0400 Subject: [PATCH] More formatting tweaks. --- src/event.js | 4 ++-- 1 file 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(); }