diff --git a/src/js/controller/read.js b/src/js/controller/read.js index e3e004e..b5f90d2 100644 --- a/src/js/controller/read.js +++ b/src/js/controller/read.js @@ -50,8 +50,7 @@ define(function(require) { }); }; - $scope.$watch('state.mailList.selected', function() { - var mail = $scope.state.mailList.selected; + $scope.$watch('state.mailList.selected', function(mail) { if (!mail) { return; }