Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "one-src", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "", | ||
"main": "bin/index.sh", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "bin/index.sh test/index.html test", | ||
"build": "uglifyjs -c -m -- src/dom-builder.js > src/dom-builder.min.js" | ||
}, | ||
@@ -9,0 +10,0 @@ "keywords": [ |
@@ -26,4 +26,6 @@ (function (map, window) { | ||
if (existingNode) { | ||
console.log('node exists :', elemTag); | ||
currentNode = existingNode; | ||
} else { | ||
console.log('node not exists :', elemTag); | ||
currentNode = document.createElement(elemTag); | ||
@@ -30,0 +32,0 @@ } |
@@ -1,1 +0,1 @@ | ||
!function(e,t){t||console.error("global variable 'window' is needed");var n=t.document,o=function(e,t){var r=function(e){var t,n,o=typeof e;return"string"===o?n=document.createTextNode(e):"object"===o&&e?n="html"===(t=e.type)||"head"===t||"body"===t?document.getElementsByTagName(t)[0]||document.createElement(t):document.createElement(t):(n=document.createTextNode("null"),console.error("unexpected elemType : "+o)),e&&e.attributes&&function(e,t){for(var n in t)e.setAttribute(n,t[n])}(n,e.attributes),n}(e),c=e.content;for(var a in c)o(c[a],r);t!==n&&t.appendChild(r)};o(e,n)}(__one_src_map,window); | ||
!function(e,t){t||console.error("global variable 'window' is needed");var n=t.document,o=function(e,t){var r=function(e){var t,n,o,r=typeof e;return"string"===r?o=document.createTextNode(e):"object"===r&&e?"html"===(t=e.type)||"head"===t||"body"===t?(n=document.getElementsByTagName(t)[0])?(console.log("node exists :",t),o=n):(console.log("node not exists :",t),o=document.createElement(t)):o=document.createElement(t):(o=document.createTextNode("null"),console.error("unexpected elemType : "+r)),e&&e.attributes&&function(e,t){for(var n in t)e.setAttribute(n,t[n])}(o,e.attributes),o}(e),c=e.content;for(var a in c)o(c[a],r);t!==n&&t.appendChild(r)};o(e,n)}(__one_src_map,window); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
38649
16
123
1