1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 11:47:58 +01:00

Minor cleanup.

This commit is contained in:
Kris Maglione
2011-02-07 23:12:09 -05:00
parent 9f0cecb9f7
commit 0290f6ebcd
4 changed files with 14 additions and 15 deletions

View File

@@ -203,12 +203,14 @@ var Tabs = Module("tabs", {
getGroups: function () {
if ("_groups" in this)
return this._groups;
if (window.TabView && TabView._initFrame)
TabView._initFrame();
let iframe = document.getElementById("tab-view");
this._groups = this._groups = iframe ? iframe.contentWindow : null;
while (this._groups && !this._groups.TabItems)
util.threadYield(false, true);
this._groups = iframe ? iframe.contentWindow : null;
if (this._groups)
util.waitFor(function () this._groups.TabItems, this);
return this._groups;
},