fix watch of selected mail in reader

This commit is contained in:
Tankred Hase 2014-02-23 23:20:47 +01:00
parent 1e9e6a2b21
commit e3e7962b3e
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}