Comparing version 1.1.2 to 1.1.3
@@ -123,6 +123,13 @@ var Manipulate = require('./ops/manipulate') | ||
// Don't insert this node if its parent is already being inserted | ||
return !oplist.some(function(op2) { | ||
if(oplist.some(function(op2) { | ||
if(op2 === op1) return false | ||
return isPrefixOf(op2.to, op1.to) | ||
}) | ||
})) { | ||
if(op1.from) { | ||
op2.to = null | ||
return true | ||
} | ||
else return false | ||
} | ||
return true | ||
}) | ||
@@ -129,0 +136,0 @@ |
{ | ||
"name": "dom-ot", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Operational transform library for DOM operations (conforms to shareJS' spec)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
21489
572