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:
Bart Ruysseveldt 2015-02-13 16:25:52 +01:00
parent 2cca8617b9
commit 34b489d01e

View File

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