diff --git a/app/scripts/account/account.js b/app/scripts/account/account.js index 7cd6481..dac79fa 100644 --- a/app/scripts/account/account.js +++ b/app/scripts/account/account.js @@ -44,10 +44,10 @@ module.factory('updateData', ['fbutil', '$timeout', '$window', '$rootScope', fun birthday: birthday, ssn: ssn, }; - console.log(userEmail); - console.log(userData); - ref.update(userData, function() {console.log('success');}); + ref.update(userData, function() { + //provide user feed back for successful data update + }); } }; return functions; diff --git a/app/scripts/app.js b/app/scripts/app.js index de4ca5b..f063651 100644 --- a/app/scripts/app.js +++ b/app/scripts/app.js @@ -32,7 +32,6 @@ angular.module('jetgrizzlyApp', [ $scope.user = user; $scope.currentRoom = window.currentRoom; userRoom.setRoom($scope.currentRoom); - // console.log($scope.currentRoom); var roomsRef = new $window.Firebase(config.firebase.url+'/rooms/'); var sync = $firebase(roomsRef); $scope.rooms = sync.$asObject(); diff --git a/app/scripts/auth/auth.js b/app/scripts/auth/auth.js index 35e4246..497fb51 100644 --- a/app/scripts/auth/auth.js +++ b/app/scripts/auth/auth.js @@ -77,7 +77,6 @@ module.controller('RegisterController', function ($scope, $state, SimpleLogin, $ }); module.controller('LogoutController', function (SimpleLogin, $state, $scope, $stateParams) { SimpleLogin.logout(); - console.log('Logged out!'); $state.go('login', $stateParams, { reload: true }); diff --git a/app/scripts/controllers/chat.js b/app/scripts/controllers/chat.js index e48c0ea..d7caf4d 100644 --- a/app/scripts/controllers/chat.js +++ b/app/scripts/controllers/chat.js @@ -4,7 +4,6 @@ var module = angular.module('jetgrizzlyApp.chat', ['firebase.utils', 'firebase'] module.controller('ChatController', ['fbutil', '$scope', '$window', '$firebase', '$location', '$anchorScroll', function(fbutil, $scope, $window, $firebase, $location, $anchorScroll) { var currentRoom = $scope.$parent.currentRoom; - // console.log(currentRoom); var limit = fbutil.ref2('/rooms/'+currentRoom+'/messages').limit(30); // create an AngularFire reference to the data and download the data into a local object diff --git a/app/scripts/controllers/videoqueue.js b/app/scripts/controllers/videoqueue.js index c887907..371664a 100644 --- a/app/scripts/controllers/videoqueue.js +++ b/app/scripts/controllers/videoqueue.js @@ -15,7 +15,6 @@ angular.module('jetgrizzlyApp') var currentRoom = $scope.$parent.room; var currentRoom = $scope.$parent.currentRoom; - // console.log(currentRoom); var queueRef = new $window.Firebase(config.firebase.url+'/rooms/'+currentRoom+'/queue/'); @@ -34,35 +33,25 @@ angular.module('jetgrizzlyApp') }); $scope.addToQueue = function(item) { - console.log('Link added: '+ item); var item = { item: item, voteCount: 0 }; $scope.queue.$add(item).then(function(){ - console.log('scope.item', $scope.item); $scope.item = ''; $scope.queueForm.$setPristine(); - console.log('your video has been added to the queue'); }); }; $scope.upvote = function(index){ var tempCount = $scope.queue[index].voteCount; ++tempCount; - console.log(tempCount); $scope.queue[index].voteCount = tempCount; - $scope.queue.$save(index).then(function(){ - console.log('upvote saved'); - }); + $scope.queue.$save(index); }; $scope.downVote = function(index){ var tempCount = $scope.queue[index].voteCount; - console.log(tempCount); --tempCount; - console.log(tempCount); $scope.queue[index].voteCount = tempCount; - $scope.queue.$save(index).then(function(){ - console.log('downvote saved'); - }); + $scope.queue.$save(index); }; }]); diff --git a/app/scripts/room/room.js b/app/scripts/room/room.js index 8423471..71a8514 100644 --- a/app/scripts/room/room.js +++ b/app/scripts/room/room.js @@ -55,21 +55,13 @@ var module = angular.module('jetgrizzlyApp.Room', ['ui.router']).config(function events: { 'onStateChange': function(event){ if (event.data === 0){ // Video has ended - console.log('video ended'); - console.log(playerState.getCurrentVideoId()); - console.log(lastVideo); if(playerState.getCurrentVideoId() !== lastVideo){ // firebase changed before our playback ended so we play it right away. - console.log('not equal'); lastVideo = playerState.getCurrentVideoId(); scope.player.loadVideoById(lastVideo); } else { - console.log('equal'); // player must wait for next video from server - console.log(playerState.getNextVideo()); - playerState.getNextVideo().then(function(nextVideo){ - console.log(nextVideo); // video wait ended and new video is loaded lastVideo = nextVideo.currentVideo; scope.player.loadVideoById(lastVideo); @@ -87,8 +79,6 @@ var module = angular.module('jetgrizzlyApp.Room', ['ui.router']).config(function } else if (event.data === 3) { // video is buffering - } else { - console.log(event.data); } } } diff --git a/app/scripts/services/playerstate.js b/app/scripts/services/playerstate.js index c138f61..c49a945 100644 --- a/app/scripts/services/playerstate.js +++ b/app/scripts/services/playerstate.js @@ -12,13 +12,10 @@ angular.module('jetgrizzlyApp') .factory('playerState', function (config, $window, $q, $firebase, userRoom) { var currentRoom = userRoom.getRoom(); - console.log('current room: ' + currentRoom); var youtubeRef = new $window.Firebase(config.firebase.url+'/rooms/'+currentRoom+'/youTube'); var currentVideoObject = {isPlaying:false,currentVideo:''}; // video change is deferred so that player plays next when appropiate var deferredVideoChange = $q.defer(); - console.log( deferredVideoChange ); - // listen to value changes on firebase to resolve the promise when video changes youtubeRef.on('value', function(snapshot){