Skip to content

Commit

Permalink
if $scope.coords is not defined, if statement will crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
chitacan committed Jul 17, 2014
1 parent 49e405d commit fb3794a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ adb.controller('controller', ['$scope', '$q', 'socketService', '$sce', function

$scope.mouseMoveLog = 'coord: (' + x + ', ' + y + ')';

if ($scope.coords === null) {

This comment has been minimized.

Copy link
@bozzer666

bozzer666 Oct 11, 2017

true

if (!$scope.coords) {
$scope.coords = [];
}

Expand Down

0 comments on commit fb3794a

Please sign in to comment.