do not show error for empty json files

This commit is contained in:
nightwing 2014-10-27 21:35:51 +04:00
commit 3ef6bc2097

View file

@ -48,7 +48,8 @@ oop.inherits(JsonWorker, Mirror);
var value = this.doc.getValue();
try {
var result = parse(value);
if (value)
parse(value);
} catch (e) {
var pos = this.doc.indexToPosition(e.at-1);
this.sender.emit("error", {