Comparing version 1.2.1 to 1.2.2
@@ -121,11 +121,9 @@ var isYoungerSiblingOf = require('./is-youngerSibling') | ||
, node = nodeAt(this.to, rootNode) | ||
var parentPathString = parentPath.join('') | ||
// set new location + set new location for child nodes | ||
setIndex(node, this.to.join('')) | ||
setIndex(node, this.to) | ||
// shift all after this.to | ||
for(var i=0; i<parent.childNodes.length; i++) { | ||
setIndex(parent.childNodes[i], parentPathString+i) | ||
setIndex(parent.childNodes[i], parentPath.concat([i])) | ||
} | ||
@@ -140,6 +138,5 @@ } | ||
for(var i=0; i<node.childNodes.length; i++) { | ||
node.childNodes[i].domOT_path = path+i | ||
setIndex(node.childNodes[i], path+i) | ||
setIndex(node.childNodes[i], path.concat([i])) | ||
} | ||
} | ||
} |
{ | ||
"name": "dom-ot", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Operational transform library for DOM operations (conforms to shareJS' spec)", | ||
@@ -5,0 +5,0 @@ "main": "index.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
25486
639