mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +03:00
Small fixes
This commit is contained in:
parent
cdf812ae9a
commit
1d309979b8
3 changed files with 15 additions and 11 deletions
|
|
@ -848,16 +848,14 @@
|
|||
Utils.createCommand = function (oContext, fExecute, fCanExecute)
|
||||
{
|
||||
var
|
||||
fResult = fExecute ? function () {
|
||||
|
||||
fNonEmpty = function () {
|
||||
if (fResult && fResult.canExecute && fResult.canExecute())
|
||||
{
|
||||
fExecute.apply(oContext, Array.prototype.slice.call(arguments));
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
} : function () {}
|
||||
},
|
||||
fResult = fExecute ? fNonEmpty : Utils.emptyFunction;
|
||||
;
|
||||
|
||||
fResult.enabled = ko.observable(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue