Permalink
Browse files

Browser.fire should fire event synchronously

  • Loading branch information...
1 parent 5211c25 commit 189616e9d74cad3fa5fa2be8c24c085e548485d4 @assaf committed Sep 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/zombie/browser.coffee
@@ -276,7 +276,7 @@ class Browser extends EventEmitter
type = if name in MOUSE_EVENT_NAMES then "MouseEvents" else "HTMLEvents"
event = @document.createEvent(type)
event.initEvent(name, true, true)
- @window._dispatchEvent(target, event, true)
+ @window._dispatchEvent(target, event, false)
return @wait(callback)
# Dispatch asynchronously. Returns true if preventDefault was set.

0 comments on commit 189616e

Please sign in to comment.