aboutsummaryrefslogtreecommitdiffstats
path: root/src
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
parent887c00780df75ab42228285e4571b9052e6fd51a (diff)
downloadjquery-2b05e24993c48f3b9c2cb9857090dc4b218b8834.tar.gz
jquery-2b05e24993c48f3b9c2cb9857090dc4b218b8834.zip
Make jQuery work without warnings in strict mode, in Firefox.
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;
});
},