add ability to force text diffing

pull/1/head
ansuz 9 years ago
parent aef6f3a85b
commit 150ebaba7b

@ -120,8 +120,8 @@ var create = function(config) {
}); });
// propogate() // propogate()
return function (newContent) { return function (newContent, force) {
if (newContent !== content) { if (newContent !== content || force) {
applyChange(ctx, ctx.getUserDoc(), newContent, logging); applyChange(ctx, ctx.getUserDoc(), newContent, logging);
if (ctx.getUserDoc() !== newContent) { if (ctx.getUserDoc() !== newContent) {
console.log("Expected that: `ctx.getUserDoc() === newContent`!"); console.log("Expected that: `ctx.getUserDoc() === newContent`!");

Loading…
Cancel
Save