mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-03 22:54:12 +01:00
Merge testing.
--HG-- rename : common/content/base.js => common/modules/base.jsm rename : common/content/services.js => common/modules/services.jsm rename : common/content/style.js => common/modules/styles.jsm rename : common/content/template.js => common/modules/template.jsm rename : common/content/util.js => common/modules/util.jsm
This commit is contained in:
@@ -14,8 +14,6 @@
|
||||
* @instance tabs
|
||||
*/
|
||||
const Tabs = Module("tabs", {
|
||||
requires: ["config"],
|
||||
|
||||
init: function () {
|
||||
this._alternates = [config.tabbrowser.mCurrentTab, null];
|
||||
|
||||
@@ -187,7 +185,7 @@ const Tabs = Module("tabs", {
|
||||
this._groups = this._groups = iframe ? iframe.contentWindow : null;
|
||||
if (this._groups)
|
||||
while (!this._groups.TabItems)
|
||||
dactyl.threadYield(false, true);
|
||||
util.threadYield(false, true);
|
||||
return this._groups;
|
||||
},
|
||||
|
||||
@@ -196,14 +194,15 @@ const Tabs = Module("tabs", {
|
||||
* selected tab if <b>index</b> is not specified. This is a 0-based
|
||||
* index.
|
||||
*
|
||||
* @param {number} index The index of the tab required.
|
||||
* @param {number|Node} index The index of the tab required or the tab itself
|
||||
* @returns {Object}
|
||||
*/
|
||||
getTab: function (index) {
|
||||
if (index instanceof Node)
|
||||
return index;
|
||||
if (index != null)
|
||||
return config.tabbrowser.mTabs[index];
|
||||
else
|
||||
return config.tabbrowser.mCurrentTab;
|
||||
return config.tabbrowser.mCurrentTab;
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user