Comparing version 0.11.2 to 0.11.3
@@ -41,7 +41,7 @@ var EVENTS = require('./src/events') | ||
} | ||
else { | ||
var kids = arg == null ? [] : Array.isArray(arg) ? arg : [arg] | ||
for (var k=0; k<kids.length; ++k) node.appendChild( | ||
kids[k].nodeType ? kids[k] : document.createTextNode(kids[k]) | ||
else if (arg !== null) { | ||
if (Array.isArray(arg)) for (var k=0; k<arg.length; ++k) node.appendChild( | ||
arg[k].nodeType ? arg[k] : document.createTextNode(arg[k]) | ||
) | ||
else node.appendChild(arg.nodeType ? arg : document.createTextNode(arg)) | ||
} | ||
@@ -48,0 +48,0 @@ } |
{ | ||
"name": "attodom", | ||
"version": "0.11.2", | ||
"version": "0.11.3", | ||
"main": "./index.js", | ||
@@ -5,0 +5,0 @@ "description": "yet another small DOM component library", |
@@ -18,3 +18,3 @@ # attodom | ||
* multiple dynamic lists within the same parent | ||
* svg and namespace support | ||
* svg support | ||
* no virtual DOM, all operations are done on actual nodes | ||
@@ -21,0 +21,0 @@ * synthetic events available |
@@ -30,7 +30,7 @@ var EVENTS = require('./src/events') | ||
} | ||
else { | ||
var kids = arg == null ? [] : Array.isArray(arg) ? arg : [arg] | ||
for (var k=0; k<kids.length; ++k) node.appendChild( | ||
kids[k].nodeType ? kids[k] : document.createTextNode(kids[k]) | ||
else if (arg !== null) { | ||
if (Array.isArray(arg)) for (var k=0; k<arg.length; ++k) node.appendChild( | ||
arg[k].nodeType ? arg[k] : document.createTextNode(arg[k]) | ||
) | ||
else node.appendChild(arg.nodeType ? arg : document.createTextNode(arg)) | ||
} | ||
@@ -37,0 +37,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
17864