fix return completed level

This commit is contained in:
Juraj Michalek
2014-12-29 14:23:20 +00:00
parent dbaf088b16
commit ab2562b83b
2 changed files with 11 additions and 6 deletions

View File

@@ -30,6 +30,11 @@ angular.module('level-complete', [])
$rootScope.$emit('startLevel', args);
};
$scope.cancelLevel = function() {
$scope.isLevelCompleteVisible = false;
};
$rootScope.$on('completeLevel', $scope.completeLevel);
$rootScope.$on('cancelLevel', $scope.cancelLevel);
});