chore(diff) lint

This commit is contained in:
coderaiser 2013-11-19 07:51:24 +00:00
parent 3dbcb08c97
commit c49d202183

View file

@ -1,6 +1,8 @@
(function (obj) {
obj.DiffProto = function(diffMatchPatch) {
var dmp = new diffMatchPatch();
'use strict';
obj.DiffProto = function(DiffMatchPatch) {
var dmp = new DiffMatchPatch();
this.createPatch = function(oldText, newText) {
var diff = dmp.diff_main(oldText, newText),
@ -12,7 +14,7 @@
this.applyPatch = function(oldText, patch) {
var patches = dmp.patch_fromText(patch),
result = dmp.patch_apply(patches, oldText);
result = dmp.patch_apply(patches, oldText),
newText = result[0];
return newText;