Mercurial > code > home > repos > light9
comparison light9/web/resource-display.html @ 1693:53f751982ddf
WIP polymer2 upgrade, timeline rewrite
Ignore-this: 73b86663c0dcb783c9c6e65f6be901a
author | drewp@bigasterisk.com |
---|---|
date | Thu, 26 Apr 2018 05:40:12 +0000 |
parents | d8ccc0df69de |
children | 15babcd58d48 |
comparison
equal
deleted
inserted
replaced
1692:6fa4288da8a6 | 1693:53f751982ddf |
---|---|
52 observers: ['onUri(graph, uri)'], | 52 observers: ['onUri(graph, uri)'], |
53 _resClasses: function(minor) { | 53 _resClasses: function(minor) { |
54 return minor ? 'resource minor' : 'resource'; | 54 return minor ? 'resource minor' : 'resource'; |
55 }, | 55 }, |
56 onUri: function(graph, uri) { | 56 onUri: function(graph, uri) { |
57 if (!this.graph) return; | |
57 this.graph.runHandler(this.setLabel.bind(this), `label ${this.uri}`); | 58 this.graph.runHandler(this.setLabel.bind(this), `label ${this.uri}`); |
58 }, | 59 }, |
59 setLabel: function() { | 60 setLabel: function() { |
60 if (!this.uri) { | 61 if (!this.uri) { |
61 this.label = "<no uri>"; | 62 this.label = "<no uri>"; |