ripplejs / ripple

A tiny foundation for building reactive views
http://ripplejs.github.io
1.28k stars 66 forks source link

CustomEvent is not newable in IE11 #46

Open iwate opened 9 years ago

iwate commented 9 years ago

Hi, ripples.js is very good! However an error has occurred in IE11.

the error in line 48

rippleEnd           = new CustomEvent("rippleEnd", {detail: $ripple}),

IE11's CustomEvent is not able to new. I add some code and use in my project. It is following code and exec in if browser's CustomEvent is not newable.

rippleEnd = document.createEvent("CustomEvent");
rippleEnd.initCustomEvent("rippleEnd", false, false, { detail: $ripple });

for your information.

I thank you for reading my funny english through.