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

Normalise fooID => fooId.

This commit is contained in:
Doug Kearns
2009-08-12 22:14:02 +10:00
parent f9436047b1
commit 662bf53d5f
6 changed files with 16 additions and 16 deletions

View File

@@ -43,7 +43,7 @@ function Buffer() //{{{
/////////////////////////////////////////////////////////////////////////////{{{
// 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");
let error = styles.addSheet(true, "font-size", "chrome://liberator/content/buffer.xhtml",

View File

@@ -94,7 +94,7 @@ const configbase = { //{{{
/**
* @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.

View File

@@ -352,16 +352,16 @@ function Hints() //{{{
*
* By default highlights it green instead of yellow.
*
* @param {number} newID The hint to make active.
* @param {number} oldID The currently active hint.
* @param {number} newId The hint to make active.
* @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)
setClass(oldElem, false);
let newElem = validHints[newID - 1];
let newElem = validHints[newId - 1];
if (newElem)
setClass(newElem, true);
}
@@ -986,7 +986,7 @@ function Hints() //{{{
if (hintNumber == 0)
hintNumber = 1;
let oldID = hintNumber;
let oldId = hintNumber;
if (key == "<Tab>")
{
if (++hintNumber > validHints.length)
@@ -997,7 +997,7 @@ function Hints() //{{{
if (--hintNumber < 1)
hintNumber = validHints.length;
}
showActiveHint(hintNumber, oldID);
showActiveHint(hintNumber, oldId);
updateStatusline();
return;

View File

@@ -45,7 +45,7 @@ const config = (function () //{{{
name: name,
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
get mainWindowID() this.isComposeWindow ? "msgcomposeWindow" : "messengerWindow",
get mainWindowId() this.isComposeWindow ? "msgcomposeWindow" : "messengerWindow",
/*** optional options, there are checked for existence and a fallback provided ***/
features: ["hints", "mail", "marks", "addressbook", "tabs"],
@@ -67,7 +67,7 @@ const config = (function () //{{{
get mailModes() [modes.NORMAL],
// focusContent() focuses this widget
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",
autocommands: [["DOMLoad", "Triggered when a page's DOM content has fully loaded"],

View File

@@ -49,7 +49,7 @@ const config = { //{{{
get isPlayerWindow() SBGetBrowser().mCurrentTab == SBGetBrowser().mediaTab,
// 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",

View File

@@ -754,12 +754,12 @@ function Player() // {{{
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);
properties.push(propManager.getPropertyInfo(propertyID).displayName);
//liberator.dump("propertyId - " + propManager.getPropertyInfo(propertyId).id);
properties.push(propManager.getPropertyInfo(propertyId).displayName);
}
}