aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dom_utils.coffee
diff options
context:
space:
mode:
authormrmr19932014-04-23 19:12:42 +0100
committermrmr19932014-04-23 19:32:29 +0100
commit353d4382a0bff97d9ec8a2a7a914b29c3567b45b (patch)
tree3177a76d4f911f1b20d7beeab47ed390becd91b6 /lib/dom_utils.coffee
parent314b5bd76a1a2d966503739270bfaa35c84a0add (diff)
downloadvimium-353d4382a0bff97d9ec8a2a7a914b29c3567b45b.tar.bz2
Remove additional unnecessary checks
Diffstat (limited to 'lib/dom_utils.coffee')
-rw-r--r--lib/dom_utils.coffee5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/dom_utils.coffee b/lib/dom_utils.coffee
index 9a006c2b..dcdd5518 100644
--- a/lib/dom_utils.coffee
+++ b/lib/dom_utils.coffee
@@ -109,9 +109,8 @@ DomUtils =
eventSequence = ["mouseover", "mousedown", "mouseup", "click"]
for event in eventSequence
mouseEvent = document.createEvent("MouseEvents")
- mouseEvent.initMouseEvent(event, true, true, window, 1, 0, 0, 0, 0,
- modifiers.ctrlKey == true, modifiers.altKey == true,
- modifiers.shiftKey == true, modifiers.metaKey == true, 0, null)
+ mouseEvent.initMouseEvent(event, true, true, window, 1, 0, 0, 0, 0, modifiers.ctrlKey, modifiers.altKey,
+ modifiers.shiftKey, modifiers.metaKey, 0, null)
# Debugging note: Firefox will not execute the element's default action if we dispatch this click event,
# but Webkit will. Dispatching a click on an input box does not seem to focus it; we do that separately
element.dispatchEvent(mouseEvent)