Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Commit

Permalink
corrected my CoffeeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
boblail committed Jan 13, 2011
1 parent 0c2cbe6 commit 10f812c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/zombie/browser.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -151,6 +151,7 @@ class Browser extends require("events").EventEmitter
event[key] = value

target.dispatchEvent event

@wait callback if callback

mouseEventNames = ['mousedown', 'mousemove', 'mouseup']
Expand Down

0 comments on commit 10f812c

Please sign in to comment.