mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 13:56:29 +00:00
Bug 1538782 - Check for null when accessing tabModal. r=whimboo
The `tabModal` property getter can return null so we need to check it before accessing sub-properties. Differential Revision: https://phabricator.services.mozilla.com/D24738 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
13064496dc
commit
3b644ff58e
@ -152,10 +152,12 @@ modal.Dialog = class {
|
||||
}
|
||||
|
||||
get args() {
|
||||
return this.tabModal.args;
|
||||
let tm = this.tabModal;
|
||||
return tm ? tm.args : null;
|
||||
}
|
||||
|
||||
get ui() {
|
||||
return this.tabModal.ui;
|
||||
let tm = this.tabModal;
|
||||
return tm ? tm.ui : null;
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user