aboutsummaryrefslogtreecommitdiffstats
path: root/src/event
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-08-20 03:59:34 +0000
committerJohn Resig <jeresig@gmail.com>2007-08-20 03:59:34 +0000
commit2b05e24993c48f3b9c2cb9857090dc4b218b8834 (patch)
treee8985ca2bb4247e95f803c1dacbeaf975361998e /src/event
parent887c00780df75ab42228285e4571b9052e6fd51a (diff)
downloadjquery-2b05e24993c48f3b9c2cb9857090dc4b218b8834.tar.gz
jquery-2b05e24993c48f3b9c2cb9857090dc4b218b8834.zip
Make jQuery work without warnings in strict mode, in Firefox.
Diffstat (limited to 'src/event')
-rw-r--r--src/event/event.js4
1 files changed, 2 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;
};