Force inputFormat on ui helper since it is always json

This commit is contained in:
Rodrigo Fernandes 2016-09-18 22:06:29 +01:00
parent 5b5feda59c
commit d3b053cae0
No known key found for this signature in database
GPG key ID: 08E3C5F38969078E

View file

@ -31,10 +31,11 @@
Diff2HtmlUI.prototype.draw = function(targetId, config) {
var cfg = config || {};
cfg.inputFormat = 'json';
var $target = this._getTarget(targetId);
$target.html(Diff2Html.getPrettyHtml(diffJson, cfg));
$target.html(Diff2Html.getPrettyHtml(diffJson, cfg.inputFormat));
synchronisedScroll($target, config);
synchronisedScroll($target, cfg);
};
function synchronisedScroll($target, config) {