[Pkg-mozext-commits] [adblock-plus-element-hiding-helper] 05/483: Always prevent default action for events
David Prévot
taffit at moszumanska.debian.org
Thu Jan 22 21:41:21 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository adblock-plus-element-hiding-helper.
commit 91ee2c11f848aa381935b4e72852d3343d25360b
Author: Wladimir Palant <trev at gtchat.de>
Date: Mon Jan 8 08:22:34 2007 +0000
Always prevent default action for events
--HG--
extra : convert_revision : svn%3Ad8bf93c1-8190-44a8-bb31-1ea94378a4df/trunk%40602
---
chrome/content/aardvark.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/chrome/content/aardvark.js b/chrome/content/aardvark.js
index 13359fe..cc212d9 100644
--- a/chrome/content/aardvark.js
+++ b/chrome/content/aardvark.js
@@ -51,11 +51,11 @@ ehhAardvark.start = function(wnd) {
ehhAardvark.doCommand = function(command, event) {
if (this[command](this.selectedElem)) {
this.showCommandLabel(this.commands[command + "_key"], this.commands[command + "_label"]);
- if (event) {
+ if (event)
event.stopPropagation();
- event.preventDefault();
- }
}
+ if (event)
+ event.preventDefault();
}
ehhAardvark.showCommandLabel = function(key, label) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus-element-hiding-helper.git
More information about the Pkg-mozext-commits
mailing list