From 90ae03f234e9df1afed18c1a891bc48d79af7b17 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Wed, 21 Oct 2015 14:08:43 -0400 Subject: [PATCH] Recur through replacements. --- prototype/UI/index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/prototype/UI/index.html b/prototype/UI/index.html index c0dd29f48..8881a225b 100644 --- a/prototype/UI/index.html +++ b/prototype/UI/index.html @@ -64,7 +64,10 @@ // fixme: handle annotated terms if (patch.delete != null) { return term(patch.delete, before); } if (patch.insert != null) { return term(patch.insert, after); } - if (patch.replace != null) {} + if (patch.replace != null) { + if (term.patch.before != null) { term(patch.replace.before); } + if (term.patch.after != null) { term(patch.replace.after); } + } } function indexed(array, continuation) {