From 5a7b1e0c36c2dd564f44568de766118b07be49ad Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Tue, 20 May 2014 17:01:59 +0200 Subject: rename model to resource --- js/controller/AppController.js | 4 ++-- js/controller/ContentController.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'js/controller') diff --git a/js/controller/AppController.js b/js/controller/AppController.js index ee8115c84..b833d3fe1 100644 --- a/js/controller/AppController.js +++ b/js/controller/AppController.js @@ -7,13 +7,13 @@ * @author Bernhard Posselt * @copyright Bernhard Posselt 2014 */ -app.controller('AppController', function (Loading, Feed, Folder) { +app.controller('AppController', function (Loading, FeedResource, FolderResource) { 'use strict'; this.loading = Loading; this.isFirstRun = function () { - return Feed.size() === 0 && Folder.size() === 0; + return FeedResource.size() === 0 && FolderResource.size() === 0; }; }); \ No newline at end of file diff --git a/js/controller/ContentController.js b/js/controller/ContentController.js index 51309a93d..8e4632f7e 100644 --- a/js/controller/ContentController.js +++ b/js/controller/ContentController.js @@ -7,17 +7,17 @@ * @author Bernhard Posselt * @copyright Bernhard Posselt 2014 */ -app.controller('ContentController', function (Publisher, Feed, Item, data) { +app.controller('ContentController', function (Publisher, FeedResource, ItemResource, data) { 'use strict'; // distribute data to models based on key Publisher.publishAll(data); this.getItems = function () { - return Item.getAll(); + return ItemResource.getAll(); }; this.getFeeds = function () { - return Feed.getAll(); + return FeedResource.getAll(); }; }); \ No newline at end of file -- cgit v1.2.3