aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/event/event.js4
-rw-r--r--src/fx/fx.js3
2 files changed, 5 insertions, 2 deletions
diff --git a/src/event/event.js b/src/event/event.js
index bb5f9d273..59fff51da 100644
--- a/src/event/event.js
+++ b/src/event/event.js
@@ -196,14 +196,14 @@ jQuery.event = {
event.preventDefault = function() {
// if preventDefault exists run it on the original event
if (originalEvent.preventDefault)
- return originalEvent.preventDefault();
+ originalEvent.preventDefault();
// otherwise set the returnValue property of the original event to false (IE)
originalEvent.returnValue = false;
};
event.stopPropagation = function() {
// if stopPropagation exists run it on the original event
if (originalEvent.stopPropagation)
- return originalEvent.stopPropagation();
+ originalEvent.stopPropagation();
// otherwise set the cancelBubble property of the original event to true (IE)
originalEvent.cancelBubble = true;
};
diff --git a/src/fx/fx.js b/src/fx/fx.js
index 3ad3dd514..9f767a9f4 100644
--- a/src/fx/fx.js
+++ b/src/fx/fx.js
@@ -340,6 +340,9 @@ jQuery.fn.extend({
else
e[ val == "toggle" ? hidden ? "show" : "hide" : val ]( prop );
});
+
+ // For JS strict compliance
+ return true;
});
},