Fixes event listener attaching error
| Q | A | ------------- | --- | Bug fix? | [yes] | New feature? | [no] | BC breaks? | [no] | Deprecations? | [no] | Tests pass? | [yes] | Fixed tickets | [none] | License | MIT | Doc PR | [none]
This commit is contained in:
parent
2cca8617b9
commit
34b489d01e
@ -173,7 +173,7 @@
|
|||||||
|
|
||||||
var addEventListener;
|
var addEventListener;
|
||||||
|
|
||||||
if (document.addEventListener) {
|
if (document.attachEvent) {
|
||||||
addEventListener = function (element, eventName, callback) {
|
addEventListener = function (element, eventName, callback) {
|
||||||
element.attachEvent('on' + eventName, callback);
|
element.attachEvent('on' + eventName, callback);
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user