angular-es-utils
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -28,6 +28,8 @@ /** | ||
var EVENTS = [ANIMATIONEND_EVENT, TRANSITIONEND_EVENT].join(' ').split(' '); | ||
var noop = function noop() {}; | ||
exports['default'] = { | ||
addClass: function addClass(element, className, doneHook) { | ||
addClass: function addClass(element, className) { | ||
var doneHook = arguments.length <= 2 || arguments[2] === undefined ? noop : arguments[2]; | ||
var autoRemove = arguments.length <= 3 || arguments[3] === undefined ? false : arguments[3]; | ||
@@ -34,0 +36,0 @@ |
{ | ||
"name": "angular-es-utils", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "es utils design for angular1.x", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -22,6 +22,7 @@ /** | ||
const EVENTS = [ANIMATIONEND_EVENT, TRANSITIONEND_EVENT].join(' ').split(' '); | ||
const noop = () => {}; | ||
export default { | ||
addClass: (element, className, doneHook, autoRemove = false) => { | ||
addClass: (element, className, doneHook = noop, autoRemove = false) => { | ||
element.classList.add(className); | ||
@@ -28,0 +29,0 @@ EVENTS.forEach(event => { |
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
75428
504