Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 4def3fe

Browse files
author
Nick Litwin
committed
Clean up
1 parent c5bbc6f commit 4def3fe

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

app/my-dashboard/subtrack-stats/subtrack-stats.controller.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
angular.module('tc.myDashboard').controller('SubtrackStatsController', SubtrackStatsController);
55

6-
SubtrackStatsController.$inject = ['ProfileService', 'userIdentity', '$window'];
6+
SubtrackStatsController.$inject = ['ProfileService', 'userIdentity'];
77

8-
function SubtrackStatsController(ProfileService, userIdentity, $window) {
8+
function SubtrackStatsController(ProfileService, userIdentity) {
99
var vm = this;
1010
vm.loading = true;
1111

@@ -46,7 +46,6 @@
4646

4747
} else {
4848
return result;
49-
5049
}
5150
}, []);
5251
}
@@ -66,6 +65,7 @@
6665
});
6766
}
6867

68+
// This function aids in showing multiple items (subtracks) per slide
6969
function buildCarouselSlide(numItemsPerSlide) {
7070
var subtrackRanksCollection = [];
7171
var slide = [];
@@ -74,7 +74,6 @@
7474
// http://stackoverflow.com/questions/26252038/multi-item-responsive-carousel
7575
numItemsPerSlide = numItemsPerSlide || 4;
7676

77-
console.log('origin collection: ', vm.subtrackRanks);
7877
for(var i = 0; i < vm.subtrackRanks.length; i++) {
7978
if (slide.length === numItemsPerSlide) {
8079
// When slide is full, push it to collection and make a new slide []
@@ -85,7 +84,6 @@
8584
}
8685
subtrackRanksCollection.push(slide);
8786
vm.subtrackRanksCollection = subtrackRanksCollection;
88-
console.log(vm.subtrackRanksCollection);
8987
}
9088
}
9189
})();

0 commit comments

Comments
 (0)