Comparing version 0.8.48 to 0.8.49
@@ -221,2 +221,3 @@ | ||
function _addClass( element,cName ){ | ||
if (!element) return; | ||
if (typeof element.className === 'string') { | ||
@@ -236,2 +237,3 @@ if( !_hasClass( element,cName ) ){ | ||
function _removeClass( element, cName ){ | ||
if (!element) return; | ||
if (typeof element.className === 'string') { | ||
@@ -249,5 +251,7 @@ if( _hasClass( element,cName ) ){ | ||
function _removeElement(element){ | ||
var _parentElement = element.parentNode; | ||
if(_parentElement){ | ||
_parentElement.removeChild(element); | ||
if (element) { | ||
var _parentElement = element.parentNode; | ||
if(_parentElement){ | ||
_parentElement.removeChild(element); | ||
} | ||
} | ||
@@ -260,17 +264,20 @@ } | ||
function _appendChild(element, node) { | ||
if (node instanceof Dom) { | ||
if (!node._isArray()) { | ||
element.appendChild(node[0]); | ||
} else { | ||
for (var i = 0; i < node.length; i++) { | ||
element.appendChild(node[i]); | ||
if (element) { | ||
if (node instanceof Dom) { | ||
if (!node._isArray()) { | ||
element.appendChild(node[0]); | ||
} else { | ||
for (var i = 0; i < node.length; i++) { | ||
element.appendChild(node[i]); | ||
} | ||
} | ||
} | ||
else { | ||
element.appendChild(node); | ||
} | ||
} | ||
else { | ||
element.appendChild(node); | ||
} | ||
} | ||
function _prependChild(element,node){ | ||
if (!element) return; | ||
if(element.hasChildNodes()){ | ||
@@ -277,0 +284,0 @@ if (node instanceof Dom) { |
@@ -86,3 +86,3 @@ { | ||
"name": "febs", | ||
"version": "0.8.48" | ||
"version": "0.8.49" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2485804
25582