Index: html/static/js/ieEventListenerPolyfill.js |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/html/static/js/ieEventListenerPolyfill.js |
@@ -0,0 +1,15 @@ |
+if (typeof window.addEventListener != "function") |
+{ |
+ window.addEventListener = function(type, handler, capture) |
+ { |
+ this.attachEvent("on" + type, handler) |
+ }; |
+} |
+ |
+if (typeof window.removeEventListener != "function") |
+{ |
+ window.removeEventListener = function(type, handler) |
+ { |
+ this.detachEvent("on" + type, handler) |
+ }; |
+} |