Comparing version 0.1.2 to 0.1.3
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t():"function"==typeof define&&define.amd?define(t):t()}(this,function(){"use strict";var e=function(e,t,n){switch(t){case"add":e.classList.add(n);break;case"remove":e.classList.remove(n);break;case"toggle":e.classList.toggle(n);break;default:console.log("invalid value for change option specified")}},t=function(t,n,o){var i=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],a=i.change||"add",c=function(t){setTimeout(function(){e(t,a,n)},o)};t.length?Array.from(t,function(e){c(e)}):c(t)};exports.lazy=t}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t():"function"==typeof define&&define.amd?define(t):t()}(this,function(){"use strict";var e=function(e,t,n){switch(t){case"add":e.classList.add(n);break;case"remove":e.classList.remove(n);break;case"toggle":e.classList.toggle(n);break;default:console.log("invalid value for change option specified")}},t=function(t,n,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=i.change||"add",c=function(t){setTimeout(function(){e(t,a,n)},o)};t.length?[].forEach.call(t,function(e){c(e)}):c(t)};exports.lazy=t}); |
{ | ||
"name": "lazy-class", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Lazy add classes to DOM elements", | ||
@@ -5,0 +5,0 @@ "main": "dist/lazy-class.min.js", |
@@ -30,5 +30,5 @@ | ||
} | ||
el.length ? Array.from(el, (e) => { sT(e) }) : sT(el) | ||
el.length ? [].forEach.call(el, (e) => { sT(e) }) : sT(el) | ||
} | ||
exports.lazy = lazy |
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
14067