We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f611d27 commit 91817ccCopy full SHA for 91817cc
addon/merge/merge.js
@@ -644,9 +644,10 @@
644
}
645
646
// Operations on diffs
647
-
648
- var dmp = new diff_match_patch();
+ var dmp;
649
function getDiff(a, b, ignoreWhitespace) {
+ if (!dmp) dmp = new diff_match_patch();
650
+
651
var diff = dmp.diff_main(a, b);
652
// The library sometimes leaves in empty parts, which confuse the algorithm
653
for (var i = 0; i < diff.length; ++i) {
0 commit comments