mirror of
https://github.com/moparisthebest/mail
synced 2024-12-22 23:38:48 -05:00
Remove unnecessary bind in dialog service
This commit is contained in:
parent
156cff1854
commit
1c1a5a4d54
@ -26,7 +26,7 @@ function Dialog($q, axe) {
|
||||
* @return {Promise}
|
||||
*/
|
||||
Dialog.prototype.info = function(options) {
|
||||
return this._handle(options, this.displayInfo.bind(this), 'displayInfo');
|
||||
return this._handle(options, this.displayInfo, 'displayInfo');
|
||||
};
|
||||
|
||||
/**
|
||||
@ -40,7 +40,7 @@ Dialog.prototype.error = function(options) {
|
||||
if (options) {
|
||||
this._axe.error((options.errMsg || options.message) + (options.stack ? ('\n' + options.stack) : ''));
|
||||
}
|
||||
return this._handle(options, this.displayError.bind(this), 'displayError');
|
||||
return this._handle(options, this.displayError, 'displayError');
|
||||
};
|
||||
|
||||
/**
|
||||
@ -51,7 +51,7 @@ Dialog.prototype.error = function(options) {
|
||||
* @return {Promise}
|
||||
*/
|
||||
Dialog.prototype.confirm = function(options) {
|
||||
return this._handle(options, this.displayConfirm.bind(this), 'displayConfirm');
|
||||
return this._handle(options, this.displayConfirm, 'displayConfirm');
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user