aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/event.js')
-rw-r--r--src/event.js4
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();
}