minor #13684 Fixes event listener attaching error (bartru)
This PR was merged into the 2.6 branch.
Discussion
----------
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]
Commits
-------
34b489d
Fixes event listener attaching error
This commit is contained in:
commit
ce009624aa
@ -173,7 +173,7 @@
|
||||
|
||||
var addEventListener;
|
||||
|
||||
if (document.addEventListener) {
|
||||
if (document.attachEvent) {
|
||||
addEventListener = function (element, eventName, callback) {
|
||||
element.attachEvent('on' + eventName, callback);
|
||||
};
|
||||
|
Reference in New Issue
Block a user