From 900fea3edb5bd44a9e6d38f4ec28a3a2213df92f Mon Sep 17 00:00:00 2001 From: Jamie Peabody Date: Sat, 2 Nov 2013 15:05:55 +0000 Subject: [PATCH] Fixes problem where changes to options.ignorews did not cause update. --- lib/mergely.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mergely.js b/lib/mergely.js index 021cb30..773026d 100644 --- a/lib/mergely.js +++ b/lib/mergely.js @@ -495,7 +495,7 @@ jQuery.extend(Mgly.CodeMirrorDiffView.prototype, { if (opts) { jQuery.extend(this.settings, opts); if (opts.autoresize) this.resize(); - if (opts.autoupdate) this.update(); + if (opts.autoupdate || opts.ignorews) this.update(); if (opts.hasOwnProperty('rhs_margin')) { // dynamically swap the margin if (opts.rhs_margin == 'left') {