MDL-60207 javascript: remove click handler in YUI modal initialiser

This commit is contained in:
Ryan Wyllie 2018-05-29 10:03:03 +08:00
parent 30e1f5a023
commit 7e0305be70
4 changed files with 2 additions and 14 deletions

View File

@ -132,10 +132,6 @@ Y.extend(DIALOGUE, Y.Panel, {
// hidden by default. ARIA visibility is managed for modal dialogues.
this.get(BASE).set('aria-hidden', 'true');
this.plug(Y.M.core.LockScroll);
var maskNode = this.get('maskNode');
maskNode.on('click', this.hide, this);
this._currentMaskNodeId = maskNode.get('_yuid');
}
// Workaround upstream YUI bug http://yuilibrary.com/projects/yui3/ticket/2532507

File diff suppressed because one or more lines are too long

View File

@ -132,10 +132,6 @@ Y.extend(DIALOGUE, Y.Panel, {
// hidden by default. ARIA visibility is managed for modal dialogues.
this.get(BASE).set('aria-hidden', 'true');
this.plug(Y.M.core.LockScroll);
var maskNode = this.get('maskNode');
maskNode.on('click', this.hide, this);
this._currentMaskNodeId = maskNode.get('_yuid');
}
// Workaround upstream YUI bug http://yuilibrary.com/projects/yui3/ticket/2532507

View File

@ -102,10 +102,6 @@ Y.extend(DIALOGUE, Y.Panel, {
// hidden by default. ARIA visibility is managed for modal dialogues.
this.get(BASE).set('aria-hidden', 'true');
this.plug(Y.M.core.LockScroll);
var maskNode = this.get('maskNode');
maskNode.on('click', this.hide, this);
this._currentMaskNodeId = maskNode.get('_yuid');
}
// Workaround upstream YUI bug http://yuilibrary.com/projects/yui3/ticket/2532507