1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-07 12:54:12 +01:00

Merge default.

--HG--
branch : groups
This commit is contained in:
Kris Maglione
2011-02-07 23:25:56 -05:00
4 changed files with 13 additions and 16 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;
},