Comparing version 3.0.0 to 3.0.1
@@ -125,3 +125,7 @@ //Copyright (C) 2012 Kory Nunn | ||
if(!attributeMap[key]){ | ||
element[setAttribute](key, settings[key]); | ||
if(isType(settings[key],fn)){ | ||
element[key] = settings[key]; | ||
}else{ | ||
element[setAttribute](key, settings[key]); | ||
} | ||
}else{ | ||
@@ -128,0 +132,0 @@ var attr = attributeMap[key]; |
@@ -0,0 +0,0 @@ The MIT License (MIT) |
@@ -8,3 +8,3 @@ { | ||
], | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"main": "crel.js", | ||
@@ -29,3 +29,8 @@ "dependencies": {}, | ||
"license": "MIT", | ||
"contributors": [] | ||
"contributors": [], | ||
"homepage": "https://github.com/KoryNunn/crel#readme", | ||
"directories": { | ||
"test": "test" | ||
}, | ||
"keywords": [] | ||
} |
@@ -68,3 +68,3 @@ ![crel](logo.png) | ||
```javascript | ||
crel('div', {'class':'thing', 'data-attrubute':'majigger'}); | ||
crel('div', {'class':'thing', 'data-attribute':'majigger'}); | ||
``` | ||
@@ -71,0 +71,0 @@ |
@@ -123,2 +123,16 @@ var crel = require('../'), | ||
test('onevent binding', function(t) { | ||
t.plan(1); | ||
var clickNode = crel('button', { | ||
onclick: function(){ | ||
t.pass(); | ||
} | ||
}); | ||
clickNode.click(); | ||
t.end(); | ||
}); | ||
if(typeof Proxy !== 'undefined'){ | ||
@@ -125,0 +139,0 @@ |
Sorry, the diff of this file is not supported yet
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
22709
260
0