Skip to content
Browse files

corrected my CoffeeScript

  • Loading branch information...
1 parent 0c2cbe6 commit 10f812c7384e8119cabc15617ec1a49c7cbbcb1b @boblail boblail committed Jan 12, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/zombie/browser.coffee
View
3 src/zombie/browser.coffee
@@ -139,7 +139,7 @@ class Browser extends require("events").EventEmitter
[callback, options] = [options, null] if typeof(options) == 'function'
options ?= {}
- klass = options.klass || ((name in mouseEventNames) ? "MouseEvents" : "HTMLEvents")
+ klass = options.klass || if (name in mouseEventNames) then "MouseEvents" else "HTMLEvents"
bubbles = options.bubbles ? true
cancelable = options.cancelable ? true
@@ -151,6 +151,7 @@ class Browser extends require("events").EventEmitter
event[key] = value
target.dispatchEvent event
+
@wait callback if callback
mouseEventNames = ['mousedown', 'mousemove', 'mouseup']

0 comments on commit 10f812c

Please sign in to comment.
Something went wrong with that request. Please try again.