element-class
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -9,3 +9,6 @@ module.exports = function(opts) { | ||
if (!opts) opts = {} | ||
if (opts instanceof HTMLElement) opts = {el: opts} | ||
// similar doing instanceof HTMLElement but works in IE8 | ||
if (opts.nodeType) opts = {el: opts} | ||
this.opts = opts | ||
@@ -12,0 +15,0 @@ this.el = opts.el || document.body |
{ | ||
"name": "element-class", | ||
"description": "add and remove classes from dom elements", | ||
"author": {"name": "Max Ogden", "email": "max@maxogden.com"}, | ||
"repository": {"type": "git", "url": "git@github.com:maxogden/element-class.git"}, | ||
"version": "0.1.0" | ||
} | ||
"author": "Max Ogden <max@maxogden.com>", | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:maxogden/element-class.git" | ||
}, | ||
"version": "0.1.1", | ||
"bugs": { | ||
"url": "https://github.com/maxogden/element-class/issues" | ||
}, | ||
"homepage": "https://github.com/maxogden/element-class", | ||
"main": "index.js", | ||
"dependencies": { | ||
"inherits": "~1.0.0" | ||
}, | ||
"devDependencies": { | ||
"tape": "^2.10.2" | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"license": "ISC", | ||
"testling": { | ||
"files": "test.js", | ||
"browsers": [ | ||
"ie/8..latest", | ||
"firefox/17..latest", | ||
"firefox/nightly", | ||
"chrome/22..latest", | ||
"chrome/canary", | ||
"opera/12..latest", | ||
"opera/next", | ||
"safari/5.1..latest", | ||
"ipad/6.0..latest", | ||
"iphone/6.0..latest", | ||
"android-browser/4.2..latest" | ||
] | ||
} | ||
} |
# element-class | ||
exactly like .addClass, .removeClass and .hasClass from jquery but with dependencies | ||
exactly like .addClass, .removeClass and .hasClass from jquery but without dependencies | ||
@@ -10,3 +10,3 @@ ``` | ||
```javascript | ||
var elementClass = require('elementClass') | ||
var elementClass = require('element-class') | ||
@@ -13,0 +13,0 @@ // get an element |
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
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
3060
5
0
51
1
1
1
+ Addedinherits@~1.0.0
+ Addedinherits@1.0.2(transitive)