aboutsummaryrefslogtreecommitdiff
path: root/app/js/controllers.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/js/controllers.js')
-rw-r--r--app/js/controllers.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/js/controllers.js b/app/js/controllers.js
index e918ff9..97b52ad 100644
--- a/app/js/controllers.js
+++ b/app/js/controllers.js
@@ -31,7 +31,6 @@ app.controller('pointCtrl', function($scope, $http, pathService){
$scope.addNewSongToGraph = function(id, titre, link, duration)
{
- alert("ninja "+id);
var newSong = {
x:100,
y:100,
@@ -40,8 +39,9 @@ app.controller('pointCtrl', function($scope, $http, pathService){
link:link,
duration:duration
};
- $scope.points.push(newSong);
- $scope.$apply();
+ $scope.points.push(newSong);
+ console.log(newSong);
+ $scope.$apply();
};