Skip to content

Commit

Permalink
Fix emit on window element in IE
Browse files Browse the repository at this point in the history
  • Loading branch information
patriksimek committed Feb 17, 2016
1 parent e1900da commit 6fa4114
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"jquery",
"browser"
],
"version": "0.2.0",
"version": "0.2.1",
"main": "lib/sim.js",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/sim.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ do (window = window ? null) ->
try
event = new window[klass] name, options
catch
event = @__dom.ownerDocument.createEvent klass
event = (@__dom.ownerDocument ? @__dom.document).createEvent klass
ALTERNATIVE_EVENT_CONSTRUCTORS[klass].call event, name, options

else
Expand Down

0 comments on commit 6fa4114

Please sign in to comment.