diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-26 11:20:55 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-26 11:52:50 +0200 |
commit | f987751d8c5c7a3ee660411afb9d01e6a822aed5 (patch) | |
tree | 9eb35d0575c62648b7f50e6c94afb808366cf05c /js/app/services/services.coffee | |
parent | d947c35d05ddb12dad591d29a9b0f948c5f4f732 (diff) |
order by pubdate on the client side fix #115
Diffstat (limited to 'js/app/services/services.coffee')
-rw-r--r-- | js/app/services/services.coffee | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/app/services/services.coffee b/js/app/services/services.coffee index 537a4492c..fa600b517 100644 --- a/js/app/services/services.coffee +++ b/js/app/services/services.coffee @@ -45,9 +45,9 @@ angular.module('News').factory 'NewLoading', ['_Loading', (_Loading) -> angular.module('News').factory 'Publisher', ['_Publisher', 'ActiveFeed', 'ShowAll', 'StarredCount', 'ItemModel', -'FolderModel', 'FeedModel', 'Language', +'FolderModel', 'FeedModel', 'Language', 'NewestItem', (_Publisher, ActiveFeed, ShowAll, StarredCount, ItemModel, -FolderModel, FeedModel, Language) -> +FolderModel, FeedModel, Language, NewestItem) -> # register items at publisher to automatically add incoming items publisher = new _Publisher() @@ -58,6 +58,7 @@ FolderModel, FeedModel, Language) -> publisher.subscribeObjectTo(FolderModel, 'folders') publisher.subscribeObjectTo(FeedModel, 'feeds') publisher.subscribeObjectTo(ItemModel, 'items') + publisher.subscribeObjectTo(NewestItem, 'newestItemId') return publisher ] |