diff options
| author | mrmr1993 | 2014-04-23 19:12:42 +0100 | 
|---|---|---|
| committer | mrmr1993 | 2014-04-23 19:32:29 +0100 | 
| commit | 353d4382a0bff97d9ec8a2a7a914b29c3567b45b (patch) | |
| tree | 3177a76d4f911f1b20d7beeab47ed390becd91b6 /lib/dom_utils.coffee | |
| parent | 314b5bd76a1a2d966503739270bfaa35c84a0add (diff) | |
| download | vimium-353d4382a0bff97d9ec8a2a7a914b29c3567b45b.tar.bz2 | |
Remove additional unnecessary checks
Diffstat (limited to 'lib/dom_utils.coffee')
| -rw-r--r-- | lib/dom_utils.coffee | 5 | 
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) | 
