// Any nodes remaining in the 'toDiff' arrays are removes and inserts
for(i=0;i<ilen;i++){
if(oldIndices[i]!==null){
diff.remove.push(oldIndices[i]);
}
}
for(j=0;j<jlen;j++){
if(newIndices[j]!==null){
diff.insert.push(newIndices[j]);
}
}
};
/**
* Get the diff between a node from the old document and a node from the new
* document.
*
* @param {ve.dm.Node} oldNode Node from the old document
* @param {ve.dm.Node} newNode Node from the new document
* @param {boolean} [noTreeDiff] Don't perform a tree diff of the nodes (used internally to avoid recursion)
* @return {ve.dm.VisualDiff.LeafDiff|ve.dm.VisualDiff.ListDiff|ve.dm.VisualDiff.DocDiff|ve.dm.VisualDiff.TreeDiff|boolean} The diff, or false if the nodes are too different