Skip to content

Commit

Permalink
Merge pull request #216 from SubVersive/master
Browse files Browse the repository at this point in the history
Fix fire of global show event for IE
  • Loading branch information
wwayne authored Oct 27, 2016
2 parents 2762495 + 56f0be4 commit 3f3417e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/decorators/staticMethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ const dispatchGlobalEvent = (eventName, opts) => {
event = new window.CustomEvent(eventName, { detail: opts })
} else {
event = document.createEvent('Event')
event.initEvent(eventName, false, true, opts)
event.initEvent(eventName, false, true)
event.detail = opts
}

window.dispatchEvent(event)
Expand Down

0 comments on commit 3f3417e

Please # to comment.