Make comments initially empty

Allows using gr-diff without providing comments. Before it would simply
crash. Now it will not render comments.

Change-Id: I6569816c94acc644061f34d24854221b5da874ac
This commit is contained in:
Ole Rehmsen 2018-09-04 15:31:00 +02:00
parent 460a3f3c35
commit 7a06549cdf
1 changed files with 4 additions and 1 deletions

View File

@ -96,7 +96,10 @@
reflectToAttribute: true,
},
noRenderOnPrefsChange: Boolean,
comments: Object,
comments: {
type: Object,
value: {left: [], right: []},
},
lineWrapping: {
type: Boolean,
value: false,