4 listKind: "blerg.TagRecord",
10 {classes: "blerg-user-controls", components: [
11 {name: "rssLink", kind: "blerg.Link", components: [
12 {tag: null, content: "["},
13 {kind: "Image", src: "/images/rss.png", attributes: {width: 16, height: 16}},
14 {tag: null, content: "RSS]"}
18 {name: "spinner", kind: "OldSchoolSpinner", showing: false},
19 {name: "api", kind: "blerg.API",
20 onItemsLoaded: "itemsLoaded"}
23 locationDetect: function(l) {
24 var m = l.hash.match(/^#\/(ref|tag)\/([A-Za-z0-9_-]+)$/);
35 this.inherited(arguments);
38 tagChanged: function() {
41 this.bubble('onSetTitle', {section: '#' + this.tag});
44 this.bubble('onSetTitle', {section: 'about @' + this.tag});
47 this.$.rssLink.setHref('/rss/' + this.type + '/' + this.tag);
48 this.$.records.destroyComponents();
49 this.lastRecord = null;
52 loadItems: function(from, to) {
53 this.inherited(arguments);
54 this.$.api.loadTagRecords(this.type, this.tag);
56 itemsLoaded: function(inSender, inEvent) {
57 this.addItems(inEvent.entries);