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",
21 onClearStatus: "clearStatus"}
24 locationDetect: function(l) {
25 var m = l.hash.match(/^#\/(ref|tag)\/([A-Za-z0-9_-]+)$/);
36 this.inherited(arguments);
39 tagChanged: function() {
42 this.bubble('onSetTitle', {section: '#' + this.tag});
45 this.bubble('onSetTitle', {section: 'about @' + this.tag});
48 this.$.rssLink.setHref('/rss/' + this.type + '/' + this.tag);
49 this.$.records.destroyComponents();
50 this.lastRecord = null;
53 loadItems: function(from, to) {
54 this.inherited(arguments);
55 this.$.api.loadTagRecords(this.type, this.tag);
57 itemsLoaded: function(inSender, inEvent) {
58 this.addItems(inEvent.entries);
59 if (this.type == 'ref' && blerg.API.loggedIn && blerg.API.username == this.tag) {
60 this.$.api.clearStatus('mentioned');
63 clearStatus: function(inSender, inEvent) {
64 if (inEvent.type == 'mentioned' && inEvent.status == 'success') {
65 enyo.Signals.send('onClearNotification', {type: inEvent.type});