remove debug messages, clean up

This commit is contained in:
Juraj Michalek
2014-12-30 10:51:50 +00:00
parent 82b304eb2c
commit 28b5b66d07
5 changed files with 9 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
angular.module('level-complete', [])
.controller('LevelCompleteController', function($scope, $rootScope) {
.controller('LevelCompleteController', function($scope, $rootScope, $window) {
$scope.isLevelCompleteVisible = false;
@@ -33,6 +33,10 @@ angular.module('level-complete', [])
$scope.cancelLevel = function() {
$scope.isLevelCompleteVisible = false;
};
$scope.openUrl = function(url) {
$window.open(url);
};
$rootScope.$on('completeLevel', $scope.completeLevel);
$rootScope.$on('cancelLevel', $scope.cancelLevel);