Fix console error in IE
Merge pull request #328 from codler/patch-3

Fix console error in IE