- commit
- 999c372e054a971af726711f0f54ab459a0c8965
- parent
- 631b0cf971d2e8ab3b4d7079a577203499b92006
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2020-05-21 09:03
refactor pushChange
Diffstat
M | static/diff.js | 5 | ++--- |
1 files changed, 2 insertions, 3 deletions
diff --git a/static/diff.js b/static/diff.js
@@ -80,9 +80,8 @@ export var pushChange = function(changes, change) { 80 80 changes.push(change); 81 81 } else { 82 82 var last = changes.pop();83 -1 var merged = merge(last, change);84 -1 for (var i = 0; i < merged.length; i++) {85 -1 changes.push(merged[i]);-1 83 for (var m of merge(last, change)) { -1 84 changes.push(m); 86 85 } 87 86 } 88 87 };