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()
return function (newContent) {
if (newContent !== content) {
return function (newContent, force) {
if (newContent !== content || force) {
applyChange(ctx, ctx.getUserDoc(), newContent, logging);
if (ctx.getUserDoc() !== newContent) {
console.log("Expected that: `ctx.getUserDoc() === newContent`!");

Loading…
Cancel
Save