bit of cleanup

This commit is contained in:
Colin Frei 2013-09-26 07:47:47 +02:00
parent 938bacdb1d
commit 6f0146e159
2 changed files with 4 additions and 4 deletions

View file

@ -28,7 +28,7 @@ function FeedListCtrl($scope, feeds, pageSwitcher, $location) {
pageSwitcher.change('feeds'); 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.nrQueueItemsOptions = [1, 2, 3, 4, 5];
$scope.feed = {}; $scope.feed = {};
// show info at top and items underneath // show info at top and items underneath
@ -50,7 +50,7 @@ function FeedCtrl($scope, $routeParams, $location, feeds, pageSwitcher, feedItem
}; };
pageSwitcher.setBack('feeds'); pageSwitcher.setBack('feeds');
} }
function ListItemCtrl($scope, $rootScope, feedItems, downloader, pageChanger) function ListItemCtrl($scope, $rootScope, feedItems, downloader, pageChanger)
{ {

View file

@ -115,9 +115,9 @@ angular.module('podcasts.models', ['podcasts.database', 'podcasts.utilities'])
*/ */
function _downloadAllItems(updateStatus) { function _downloadAllItems(updateStatus) {
var feedService = this, var feedService = this,
promise = db.get("feed"); feeds = db.get("feed");
promise.then(function(results) { feeds.then(function(results) {
angular.forEach(results, function(item) { angular.forEach(results, function(item) {
feedService.downloadItems(item, updateStatus); feedService.downloadItems(item, updateStatus);
}); });