MDL-68409 js: Fix eslint failure in modal

This commit is contained in:
Andrew Nicols
2020-05-04 15:07:48 +08:00
parent 92810f7af9
commit fc3d7d693a
3 changed files with 5 additions and 4 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+3 -2
View File
@@ -610,10 +610,11 @@ define([
* already been.
*
* @method show
* @returns {Promise}
*/
Modal.prototype.show = function() {
if (this.isVisible()) {
return;
return $.Deferred().resolve();
}
var pendingPromise = new Pending('core/modal:show');
@@ -628,7 +629,7 @@ define([
this.attachToDOM();
}
this.getBackdrop()
return this.getBackdrop()
.then(function(backdrop) {
var currentIndex = this.calculateZIndex();
var newIndex = currentIndex + 2;