equal
deleted
inserted
replaced
32 return this.fetch.replace(':annotation_guid', this.annotation.annotation_guid); |
32 return this.fetch.replace(':annotation_guid', this.annotation.annotation_guid); |
33 } |
33 } |
34 }, |
34 }, |
35 watch: { |
35 watch: { |
36 annotation: function(annotation) { |
36 annotation: function(annotation) { |
37 if (annotation) { |
37 if (annotation && annotation.annotation_guid) { |
38 $.getJSON(this.commentsURL).then((comments) => this.comments = comments); |
38 $.getJSON(this.commentsURL).then((comments) => this.comments = comments); |
39 } else { |
39 } else { |
40 this.comments = []; |
40 this.comments = []; |
41 } |
41 } |
42 } |
42 } |