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:
Fabien Potencier 2015-02-16 10:22:28 +01:00
commit ce009624aa
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@
var addEventListener;
if (document.addEventListener) {
if (document.attachEvent) {
addEventListener = function (element, eventName, callback) {
element.attachEvent('on' + eventName, callback);
};