Small refactoring (popup key scope optimization)

This commit is contained in:
RainLoop Team 2014-04-08 02:36:38 +04:00
parent 77cdc4690b
commit a96e1d80c3
22 changed files with 226 additions and 254 deletions

View file

@ -588,20 +588,6 @@ MailBoxMessageListViewModel.prototype.onBuild = function (oDom)
})
;
ko.computed(function () {
var
oData = RL.data(),
bViewModelVisibility = this.viewModelVisibility(),
bPopupVisibility = RL.popupVisibility(),
bUseKeyboardShortcuts = oData.useKeyboardShortcuts(),
bMessageFullScreenMode = oData.messageFullScreenMode()
;
this.selector.useKeyboard(bViewModelVisibility && bUseKeyboardShortcuts && !bMessageFullScreenMode && !bPopupVisibility);
}, this).extend({'notify': 'always'});
this.initUploaderForAppend();
this.initShortcuts();