4 listKind: "blerg.TagRecord",
8 {classes: "blerg-user-controls", components: [
9 {name: "rssLink", href: "/rss/feed", kind: "blerg.Link", components: [
10 {tag: null, content: "["},
11 {kind: "Image", src: "/images/rss.png", attributes: {width: 16, height: 16}},
12 {tag: null, content: "RSS]"}
16 {name: "spinner", kind: "OldSchoolSpinner", showing: false},
17 {name: "api", kind: "blerg.API",
18 onItemsLoaded: "itemsLoaded",
19 onClearStatus: "clearStatus"}
22 locationDetect: function(l) {
23 var m = l.hash.match(/^#\/feed$/);
25 return {kind: "blerg.Feed"};
30 this.inherited(arguments);
33 loadItems: function(from, to) {
34 this.inherited(arguments);
35 this.$.api.loadFeed();
37 itemsLoaded: function(inSender, inEvent) {
38 this.addItems(inEvent.entries);
39 this.$.api.clearStatus('feed');
41 clearStatus: function(inSender, inEvent) {
42 if (inEvent.type == 'feed' && inEvent.status == 'success') {
43 enyo.Signals.send('onClearNotification', {type: inEvent.type});