Force inputFormat on ui helper since it is always json
This commit is contained in:
parent
5b5feda59c
commit
d3b053cae0
1 changed files with 3 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue