Skip to content

Commit 51c04a9

Browse files
committed
Merge pull request #369 from Quicksaver/master
Compatibility with Tab Groups add-on
2 parents 5c7ffbe + 3f03097 commit 51c04a9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

vimperator/content/tabgroup.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
/**
1212
* @instance tabgroup
1313
*/
14-
const TabGroup = Module("tabGroup", {
14+
var TabGroup = Module("tabGroup", {
1515
requires: ["config", "tabs"],
1616

17-
TV: window.TabView,
17+
get TV () { return window.TabView; },
1818

1919
get tabView () {
20-
const TV = window.TabView;
20+
let TV = this.TV;
2121
if (!TV)
2222
return null;
2323
if (!TV._window || !TV._window.GroupItems) {
@@ -26,8 +26,7 @@ const TabGroup = Module("tabGroup", {
2626
while (waiting)
2727
liberator.threadYield(false, true);
2828
}
29-
delete this.tabView;
30-
return this.tabView = TV._window;
29+
return TV._window;
3130
},
3231

3332
get appTabs () {

0 commit comments

Comments
 (0)