ampersand-dom
Advanced tools
Comparing version 1.2.4 to 1.2.5
@@ -23,3 +23,4 @@ var dom = module.exports = { | ||
if (el.classList) { | ||
el.classList.remove(getString(cls)); | ||
cls = getString(cls); | ||
if (cls) el.classList.remove(cls); | ||
} else { | ||
@@ -26,0 +27,0 @@ // may be faster to not edit unless we know we have it? |
{ | ||
"name": "ampersand-dom", | ||
"description": "Super light-weight DOM manipulation lib.", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"author": "'Henrik Joreteg' <henrik@andyet.net>", | ||
@@ -6,0 +6,0 @@ "bugs": { |
@@ -113,2 +113,6 @@ var suite = require('tape-suite'); | ||
t.doesNotThrow(function () { | ||
dom.removeClass(fixture, ''); | ||
}, 'should not complain when removing empty class'); | ||
t.end(); | ||
@@ -115,0 +119,0 @@ }); |
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
13854
287