1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-22 08:52:15 -05:00

Remove unnecessary bind in dialog service

This commit is contained in:
Tankred Hase 2014-11-26 12:50:16 +01:00
parent 156cff1854
commit 1c1a5a4d54

View File

@ -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');
};
/**