mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 00:28:00 +01:00
Normalise fooID => fooId.
This commit is contained in:
@@ -43,7 +43,7 @@ function Buffer() //{{{
|
|||||||
/////////////////////////////////////////////////////////////////////////////{{{
|
/////////////////////////////////////////////////////////////////////////////{{{
|
||||||
|
|
||||||
// FIXME: This doesn't belong here.
|
// FIXME: This doesn't belong here.
|
||||||
let fontSize = util.computedStyle(document.getElementById(config.mainWindowID)).fontSize;
|
let fontSize = util.computedStyle(document.getElementById(config.mainWindowId)).fontSize;
|
||||||
|
|
||||||
styles.registerSheet("chrome://liberator/skin/liberator.css");
|
styles.registerSheet("chrome://liberator/skin/liberator.css");
|
||||||
let error = styles.addSheet(true, "font-size", "chrome://liberator/content/buffer.xhtml",
|
let error = styles.addSheet(true, "font-size", "chrome://liberator/content/buffer.xhtml",
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ const configbase = { //{{{
|
|||||||
/**
|
/**
|
||||||
* @property {string} The ID of the application's main XUL window.
|
* @property {string} The ID of the application's main XUL window.
|
||||||
*/
|
*/
|
||||||
mainWindowID: document.documentElement.id,
|
mainWindowId: document.documentElement.id,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @property {[[]]} An array of application specific mode specifications.
|
* @property {[[]]} An array of application specific mode specifications.
|
||||||
|
|||||||
@@ -352,16 +352,16 @@ function Hints() //{{{
|
|||||||
*
|
*
|
||||||
* By default highlights it green instead of yellow.
|
* By default highlights it green instead of yellow.
|
||||||
*
|
*
|
||||||
* @param {number} newID The hint to make active.
|
* @param {number} newId The hint to make active.
|
||||||
* @param {number} oldID The currently active hint.
|
* @param {number} oldId The currently active hint.
|
||||||
*/
|
*/
|
||||||
function showActiveHint(newID, oldID)
|
function showActiveHint(newId, oldId)
|
||||||
{
|
{
|
||||||
let oldElem = validHints[oldID - 1];
|
let oldElem = validHints[oldId - 1];
|
||||||
if (oldElem)
|
if (oldElem)
|
||||||
setClass(oldElem, false);
|
setClass(oldElem, false);
|
||||||
|
|
||||||
let newElem = validHints[newID - 1];
|
let newElem = validHints[newId - 1];
|
||||||
if (newElem)
|
if (newElem)
|
||||||
setClass(newElem, true);
|
setClass(newElem, true);
|
||||||
}
|
}
|
||||||
@@ -986,7 +986,7 @@ function Hints() //{{{
|
|||||||
if (hintNumber == 0)
|
if (hintNumber == 0)
|
||||||
hintNumber = 1;
|
hintNumber = 1;
|
||||||
|
|
||||||
let oldID = hintNumber;
|
let oldId = hintNumber;
|
||||||
if (key == "<Tab>")
|
if (key == "<Tab>")
|
||||||
{
|
{
|
||||||
if (++hintNumber > validHints.length)
|
if (++hintNumber > validHints.length)
|
||||||
@@ -997,7 +997,7 @@ function Hints() //{{{
|
|||||||
if (--hintNumber < 1)
|
if (--hintNumber < 1)
|
||||||
hintNumber = validHints.length;
|
hintNumber = validHints.length;
|
||||||
}
|
}
|
||||||
showActiveHint(hintNumber, oldID);
|
showActiveHint(hintNumber, oldId);
|
||||||
updateStatusline();
|
updateStatusline();
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ const config = (function () //{{{
|
|||||||
name: name,
|
name: name,
|
||||||
hostApplication: host, // TODO: can this be found out otherwise? gBrandBundle.getString("brandShortName");
|
hostApplication: host, // TODO: can this be found out otherwise? gBrandBundle.getString("brandShortName");
|
||||||
// Yes, but it will be localized unlike all other strings. So, it's best left until we i18n liberator. --djk
|
// Yes, but it will be localized unlike all other strings. So, it's best left until we i18n liberator. --djk
|
||||||
get mainWindowID() this.isComposeWindow ? "msgcomposeWindow" : "messengerWindow",
|
get mainWindowId() this.isComposeWindow ? "msgcomposeWindow" : "messengerWindow",
|
||||||
|
|
||||||
/*** optional options, there are checked for existence and a fallback provided ***/
|
/*** optional options, there are checked for existence and a fallback provided ***/
|
||||||
features: ["hints", "mail", "marks", "addressbook", "tabs"],
|
features: ["hints", "mail", "marks", "addressbook", "tabs"],
|
||||||
@@ -67,7 +67,7 @@ const config = (function () //{{{
|
|||||||
get mailModes() [modes.NORMAL],
|
get mailModes() [modes.NORMAL],
|
||||||
// focusContent() focuses this widget
|
// focusContent() focuses this widget
|
||||||
get mainWidget() this.isComposeWindow ? document.getElementById("content-frame") : GetThreadTree(),
|
get mainWidget() this.isComposeWindow ? document.getElementById("content-frame") : GetThreadTree(),
|
||||||
get visualbellWindow() document.getElementById(this.mainWindowID),
|
get visualbellWindow() document.getElementById(this.mainWindowId),
|
||||||
styleableChrome: "chrome://messenger/content/messenger.xul,chrome://messenger/content/messengercompose/messengercompose.xul",
|
styleableChrome: "chrome://messenger/content/messenger.xul,chrome://messenger/content/messengercompose/messengercompose.xul",
|
||||||
|
|
||||||
autocommands: [["DOMLoad", "Triggered when a page's DOM content has fully loaded"],
|
autocommands: [["DOMLoad", "Triggered when a page's DOM content has fully loaded"],
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ const config = { //{{{
|
|||||||
|
|
||||||
get isPlayerWindow() SBGetBrowser().mCurrentTab == SBGetBrowser().mediaTab,
|
get isPlayerWindow() SBGetBrowser().mCurrentTab == SBGetBrowser().mediaTab,
|
||||||
// focusContent() focuses this widget gSongbirdWindowController takes care of the focus.
|
// focusContent() focuses this widget gSongbirdWindowController takes care of the focus.
|
||||||
get visualbellWindow() document.getElementById(this.mainWindowID),
|
get visualbellWindow() document.getElementById(this.mainWindowId),
|
||||||
|
|
||||||
styleableChrome: "chrome://gonzo/content/xul/mainplayer.xul",
|
styleableChrome: "chrome://gonzo/content/xul/mainplayer.xul",
|
||||||
|
|
||||||
|
|||||||
@@ -754,12 +754,12 @@ function Player() // {{{
|
|||||||
|
|
||||||
while (propEnumerator.hasMore())
|
while (propEnumerator.hasMore())
|
||||||
{
|
{
|
||||||
let propertyID = propEnumerator.getNext();
|
let propertyId = propEnumerator.getNext();
|
||||||
|
|
||||||
if (propManager.getPropertyInfo(propertyID).userViewable)
|
if (propManager.getPropertyInfo(propertyId).userViewable)
|
||||||
{
|
{
|
||||||
liberator.dump("PropertyID - "+propManager.getPropertyInfo(propertyID).id);
|
//liberator.dump("propertyId - " + propManager.getPropertyInfo(propertyId).id);
|
||||||
properties.push(propManager.getPropertyInfo(propertyID).displayName);
|
properties.push(propManager.getPropertyInfo(propertyId).displayName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user