aboutsummaryrefslogtreecommitdiffstats
path: root/vimiumFrontend.js
diff options
context:
space:
mode:
authorPhil Crosby2012-01-20 00:35:56 -0800
committerPhil Crosby2012-01-20 00:35:56 -0800
commita26491991e512e3d703564df324d447e4101f20b (patch)
treee1ed5cc01cf3f3c41b28dec4aeab2402f01e0637 /vimiumFrontend.js
parentc522ba2e6b624e0c4364034a64605d4367f06d7b (diff)
downloadvimium-a26491991e512e3d703564df324d447e4101f20b.tar.bz2
Fix a rogue suppressEvent() exception
Diffstat (limited to 'vimiumFrontend.js')
-rw-r--r--vimiumFrontend.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/vimiumFrontend.js b/vimiumFrontend.js
index 283f8d08..e217e955 100644
--- a/vimiumFrontend.js
+++ b/vimiumFrontend.js
@@ -402,7 +402,8 @@ function bubbleEvent(type, event) {
// We need to check for existence of handler because the last function call may have caused the release of
// more than one handler.
if (handlerStack[i] && handlerStack[i][type] && !handlerStack[i][type](event)) {
- suppressEvent(event);
+ event.preventDefault();
+ event.stopPropagation();
return false;
}
}