Adding tests for controllers.

This commit is contained in:
Gunther Brunner
2014-08-22 19:39:47 +09:00
parent a0efad0ecf
commit 69875574d0
5 changed files with 24 additions and 15 deletions

View File

@@ -21,7 +21,9 @@ module.exports = function LogsCtrl($scope, LogcatService) {
})
window.onbeforeunload = function () {
$scope.control.stopLogcat()
if ($scope.control) {
$scope.control.stopLogcat()
}
}
$scope.clear = function () {