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');
}
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

View file

@ -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);
});