From 150ebaba7ba73a2aee1cdde1367b99ebf467e958 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 27 Apr 2016 17:58:55 +0200 Subject: [PATCH] add ability to force text diffing --- www/common/TextPatcher.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/common/TextPatcher.js b/www/common/TextPatcher.js index 83bfedc48..a5d9b9d01 100644 --- a/www/common/TextPatcher.js +++ b/www/common/TextPatcher.js @@ -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`!");