Changelog update for 1.8
[blerg.git] / www / jssrc / blerg / Feed.js
1 enyo.kind({
2     name: "blerg.Feed",
3     kind: "blerg.Pager",
4     listKind: "blerg.TagRecord",
5     published: {
6     },
7     components: [
8         {name: "records"},
9         {name: "spinner", kind: "OldSchoolSpinner", showing: false},
10         {name: "api", kind: "blerg.API",
11          onItemsLoaded: "itemsLoaded"}
12     ],
13     statics: {
14         locationDetect: function(l) {
15             var m = l.hash.match(/^#\/feed$/);
16             if (m) {
17                 return {kind: "blerg.Feed"};
18             }
19         }
20     },
21     create: function() {
22         this.inherited(arguments);
23         this.loadMore();
24     },
25     loadItems: function(from, to) {
26         this.inherited(arguments);
27         this.$.api.loadFeed();
28     },
29     itemsLoaded: function(inSender, inEvent) {
30         this.addItems(inEvent.entries);
31         this.bubble('onClearFeedStatus');
32     }
33 });