angular-es-utils
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -34,3 +34,6 @@ /** | ||
EVENTS.forEach(function (event) { | ||
return element.addEventListener(event, doneHook, false); | ||
element.addEventListener(event, function () { | ||
element.classList.remove(className); | ||
doneHook(); | ||
}, false); | ||
}); | ||
@@ -42,3 +45,3 @@ }, | ||
EVENTS.forEach(function (event) { | ||
return element.addEventListener(event, doneHook, false); | ||
element.addEventListener(event, doneHook, false); | ||
}); | ||
@@ -45,0 +48,0 @@ } |
{ | ||
"name": "angular-es-utils", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "es utils design for angular1.x", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -27,3 +27,8 @@ /** | ||
element.classList.add(className); | ||
EVENTS.forEach(event => element.addEventListener(event, doneHook, false)); | ||
EVENTS.forEach(event => { | ||
element.addEventListener(event, () => { | ||
element.classList.remove(className); | ||
doneHook(); | ||
}, false) | ||
}); | ||
}, | ||
@@ -33,5 +38,7 @@ | ||
element.classList.remove(className); | ||
EVENTS.forEach(event => element.addEventListener(event, doneHook, false)); | ||
EVENTS.forEach(event => { | ||
element.addEventListener(event, doneHook, false) | ||
}); | ||
} | ||
}; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
496
74003