diff --git a/js/controllers.js b/js/controllers.js index b781824..d1f0719 100644 --- a/js/controllers.js +++ b/js/controllers.js @@ -28,7 +28,7 @@ function FeedListCtrl($scope, feeds, pageSwitcher, $location) { pageSwitcher.change('feeds'); } -function FeedCtrl($scope, $routeParams, $location, feeds, pageSwitcher, feedItems, $rootScope) { +function FeedCtrl($scope, $routeParams, $location, feeds, pageSwitcher) { $scope.nrQueueItemsOptions = [1, 2, 3, 4, 5]; $scope.feed = {}; // show info at top and items underneath @@ -50,7 +50,7 @@ function FeedCtrl($scope, $routeParams, $location, feeds, pageSwitcher, feedItem }; pageSwitcher.setBack('feeds'); - } +} function ListItemCtrl($scope, $rootScope, feedItems, downloader, pageChanger) { diff --git a/js/models.js b/js/models.js index 401d39d..2ee2f22 100644 --- a/js/models.js +++ b/js/models.js @@ -115,9 +115,9 @@ angular.module('podcasts.models', ['podcasts.database', 'podcasts.utilities']) */ function _downloadAllItems(updateStatus) { var feedService = this, - promise = db.get("feed"); + feeds = db.get("feed"); - promise.then(function(results) { + feeds.then(function(results) { angular.forEach(results, function(item) { feedService.downloadItems(item, updateStatus); });