Skip to content

Commit

Permalink
Ensure that this._parentTab is initialized
Browse files Browse the repository at this point in the history
(related to #20)
  • Loading branch information
Infocatcher committed Mar 10, 2016
1 parent 9cc593c commit 01bff7e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chrome/content/linkPropsPlus.js
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,9 @@ var linkPropsPlusSvc = {
},
_parentTab: null,
get parentTab() {
var tab = this.isOwnWindow ? this.wnd.parentTab : this._parentTab;
var tab = this.isOwnWindow
? this.wnd.parentTab
: this._parentTab || this.parentWindow && this._parentTab;
if(tab && tab.parentNode && !tab.hidden && !tab.collapsed && !tab.closing)
return tab;
return null;
Expand Down

0 comments on commit 01bff7e

Please sign in to comment.