@jeefo/jqlite
Advanced tools
Comparing version 0.0.5 to 0.0.6
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. | ||
* File Name : dom_parser.js | ||
* Created at : 2020-06-05 | ||
* Updated at : 2020-06-23 | ||
* Updated at : 2020-08-03 | ||
* Author : jeefo | ||
@@ -55,4 +55,14 @@ * Purpose : | ||
} | ||
static replace (source_element, destination_element) { | ||
for (const attr of source_element.attributes) { | ||
destination_element.setAttribute(attr.name, attr.value); | ||
} | ||
while (source_element.firstChild) { | ||
destination_element.appendChild(source_element.firstChild); | ||
} | ||
return destination_element; | ||
} | ||
} | ||
module.exports = JeefoDOMParser; |
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. | ||
* File Name : index.js | ||
* Created at : 2017-08-08 | ||
* Updated at : 2020-06-24 | ||
* Updated at : 2020-10-22 | ||
* Author : jeefo | ||
@@ -6,0 +6,0 @@ * Purpose : |
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. | ||
* File Name : jeefo_element.js | ||
* Created at : 2017-01-06 | ||
* Updated at : 2020-06-24 | ||
* Updated at : 2020-10-21 | ||
* Author : jeefo | ||
@@ -96,2 +96,8 @@ * Purpose : | ||
} | ||
replace_with (node) { | ||
if (node instanceof JeefoElement) { node = node.DOM_element; } | ||
this.DOM_element.replaceWith(node); | ||
this.DOM_element = node; | ||
return this; | ||
} | ||
replace (node) { | ||
@@ -98,0 +104,0 @@ if (node instanceof JeefoElement) { node = node.DOM_element; } |
{ | ||
"name": "@jeefo/jqlite", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"homepage": "https://github.com/je3f0o/jeefo_jqlite", | ||
"copyright": "2018", | ||
"description": "Very simple DOM wrapper library for jeefo framework.", | ||
"description": "Very simple DOM wrapper library for jeefo framework. (under development...)", | ||
"author": { | ||
@@ -19,3 +19,3 @@ "name": "je3f0o", | ||
"type": "git", | ||
"url": "https://github.com/je3f0o/jeefo_jqlite.git" | ||
"url": "get@github.com:je3f0o/jeefo_jqlite.git" | ||
}, | ||
@@ -22,0 +22,0 @@ "keywords": [ |
# jeefo_jqlite | ||
Part of jeefo framework | ||
Part of jeefo framework. (under development...) |
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. | ||
* File Name : style_methods.js | ||
* Created at : 2017-08-03 | ||
* Updated at : 2020-06-23 | ||
* Updated at : 2020-10-22 | ||
* Author : jeefo | ||
@@ -133,3 +133,3 @@ * Purpose : | ||
set (value) { | ||
if (typeof value === "number") { value = `${value}px`; } | ||
if (typeof value === "number") value = `${value}px`; | ||
this.DOM_element.style.width = value; | ||
@@ -142,3 +142,3 @@ } | ||
set (value) { | ||
if (typeof value === "number") { value = `${value}px`; } | ||
if (typeof value === "number") value = `${value}px`; | ||
this.DOM_element.style.height = value; | ||
@@ -145,0 +145,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
22068
626