Comparing version 2.3.0 to 2.3.1
@@ -1316,3 +1316,3 @@ (function(root, factory) { | ||
} | ||
node.insertBefore(childNode, reference); | ||
node.insertBefore(childNode, reference || null); | ||
} | ||
@@ -1327,3 +1327,3 @@ break; | ||
node = this.getFromRoute(tree, route); | ||
node.insertBefore(this.objToNode(diff[this._const.element], node.namespaceURI === 'http://www.w3.org/2000/svg'), node.childNodes[c]); | ||
node.insertBefore(this.objToNode(diff[this._const.element], node.namespaceURI === 'http://www.w3.org/2000/svg'), node.childNodes[c] || null); | ||
break; | ||
@@ -1344,3 +1344,3 @@ case this._const.removeTextElement: | ||
} | ||
node.insertBefore(newNode, node.childNodes[c]); | ||
node.insertBefore(newNode, node.childNodes[c] || null); | ||
break; | ||
@@ -1347,0 +1347,0 @@ default: |
{ | ||
"name": "diff-dom", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "A diff for DOM elements, as client-side JavaScript code. Gets all modifications, insertions and removals between two DOM fragments.", | ||
@@ -5,0 +5,0 @@ "main": "diffDOM.js", |
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
312127
15