From e3e7962b3e066447fcb66fb420f591b9b8aa7ad3 Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Sun, 23 Feb 2014 23:20:47 +0100 Subject: [PATCH] fix watch of selected mail in reader --- src/js/controller/read.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; }