MDL-68409 js: Fix eslint failure in modal
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user