hyperscript
Advanced tools
Comparing version 1.0.7 to 1.1.0
10
index.js
var split = require('browser-split') | ||
var ClassList = require('class-list') | ||
var DataSet = require('data-set') | ||
@@ -69,4 +70,7 @@ module.exports = h | ||
})(s, l[k][s]) | ||
} else | ||
} else if (k.substr(0, 5) === "data-") { | ||
DataSet(e)[k.substr(5)] = l[k] | ||
} else { | ||
e[k] = l[k] | ||
} | ||
} | ||
@@ -96,5 +100,3 @@ } else if ('function' === typeof l) { | ||
function isNode (el) { | ||
return typeof Node != 'undefined' | ||
? el instanceof Node | ||
: el instanceof Element | ||
return el.nodeName && el.nodeType | ||
} | ||
@@ -101,0 +103,0 @@ |
{ | ||
"name": "hyperscript", | ||
"version": "1.0.7", | ||
"version": "1.1.0", | ||
"homepage": "https://github.com/dominictarr/hyperscript", | ||
@@ -17,4 +17,5 @@ "repository": { | ||
"class-list": "~0.1.0", | ||
"browser-split": "0.0.0" | ||
"browser-split": "0.0.0", | ||
"data-set": "~0.2.2" | ||
} | ||
} |
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
38827
107
3
+ Addeddata-set@~0.2.2
+ Addeddata-set@0.2.2(transitive)
+ Addedglobal@0.1.5(transitive)
+ Addedindividual@0.1.1(transitive)
+ Addedweakmap@0.0.6(transitive)