Skip to content

Commit

Permalink
Changing event creation to be compatible with IE11
Browse files Browse the repository at this point in the history
  • Loading branch information
simianhacker committed Nov 30, 2016
1 parent b6242f4 commit 5eb843f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 126 deletions.
125 changes: 0 additions & 125 deletions npm-debug.log

This file was deleted.

3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ export default class ResizeAware extends Component {
// function called on component resize
// a `resize` event will be triggered on the component
onResize(evt) {
var event = new Event('resize')
var event = document.createEvent('Event');
event.initEvent('resize', true, true);
this.refs.container.dispatchEvent(event)
}

Expand Down

0 comments on commit 5eb843f

Please sign in to comment.