mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-26 16:35:48 +01:00
Remove accidentally committed debugging code. "Fix" a bug. Probably: Fixes issue #226.
This commit is contained in:
@@ -38,16 +38,15 @@ var Map = Class("Map", {
|
|||||||
this.id = ++Map.id;
|
this.id = ++Map.id;
|
||||||
this.modes = modes;
|
this.modes = modes;
|
||||||
this.names = keys.map(events.closure.canonicalKeys);
|
this.names = keys.map(events.closure.canonicalKeys);
|
||||||
this._keys = keys;
|
|
||||||
this.name = this.names[0];
|
this.name = this.names[0];
|
||||||
this.action = action;
|
this.action = action;
|
||||||
this.description = description;
|
this.description = description;
|
||||||
|
|
||||||
if (Object.freeze)
|
if (Object.freeze)
|
||||||
Object.freeze(this.modes);
|
Object.freeze(this.modes);
|
||||||
|
|
||||||
if (extraInfo)
|
if (extraInfo)
|
||||||
update(this, extraInfo);
|
update(this, extraInfo);
|
||||||
util.dump("\n\n\n", this.name, extraInfo);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/** @property {number[]} All of the modes for which this mapping applies. */
|
/** @property {number[]} All of the modes for which this mapping applies. */
|
||||||
@@ -167,8 +166,9 @@ var Mappings = Module("mappings", {
|
|||||||
let j = map.names.indexOf(cmd);
|
let j = map.names.indexOf(cmd);
|
||||||
if (j >= 0) {
|
if (j >= 0) {
|
||||||
map.names.splice(j, 1);
|
map.names.splice(j, 1);
|
||||||
if (map.names.length == 0)
|
if (map.names.length == 0) // FIX ME.
|
||||||
maps.splice(i, 1);
|
for (let [mode, stack] in Iterator(this._user))
|
||||||
|
this._user[mode] = (stack || []).filter(function (m) m != map);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -451,7 +451,6 @@ var Mappings = Module("mappings", {
|
|||||||
] : [];
|
] : [];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
window.userMappings = userMappings;
|
|
||||||
function userMappings() {
|
function userMappings() {
|
||||||
let seen = {};
|
let seen = {};
|
||||||
for (let [, stack] in Iterator(mappings._user))
|
for (let [, stack] in Iterator(mappings._user))
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ var ConfigBase = Class("ConfigBase", {
|
|||||||
* Called on dactyl startup to allow for any arbitrary application-specific
|
* Called on dactyl startup to allow for any arbitrary application-specific
|
||||||
* initialization code. Must call superclass's init function.
|
* initialization code. Must call superclass's init function.
|
||||||
*/
|
*/
|
||||||
init: function () {
|
init: function init() {
|
||||||
|
|
||||||
highlight.styleableChrome = this.styleableChrome;
|
highlight.styleableChrome = this.styleableChrome;
|
||||||
highlight.loadCSS(this.CSS);
|
highlight.loadCSS(this.CSS);
|
||||||
@@ -41,7 +41,7 @@ var ConfigBase = Class("ConfigBase", {
|
|||||||
|
|
||||||
get addonID() this.name + "@dactyl.googlecode.com",
|
get addonID() this.name + "@dactyl.googlecode.com",
|
||||||
|
|
||||||
styleHelp: function () {
|
styleHelp: function styleHelp() {
|
||||||
if (!this.helpStyled)
|
if (!this.helpStyled)
|
||||||
for (let k in keys(highlight.loaded))
|
for (let k in keys(highlight.loaded))
|
||||||
if (/^(Help|StatusLine)|^(Boolean|Indicator|MoreMsg|Number|Logo|Key(word)?|String)$/.test(k))
|
if (/^(Help|StatusLine)|^(Boolean|Indicator|MoreMsg|Number|Logo|Key(word)?|String)$/.test(k))
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ var Config = Module("config", ConfigBase, {
|
|||||||
|
|
||||||
get visualbellWindow() this.browser.mPanelContainer,
|
get visualbellWindow() this.browser.mPanelContainer,
|
||||||
|
|
||||||
removeTab: function (tab) {
|
removeTab: function removeTab(tab) {
|
||||||
if (this.tabbrowser.mTabs.length > 1)
|
if (this.tabbrowser.mTabs.length > 1)
|
||||||
this.tabbrowser.removeTab(tab);
|
this.tabbrowser.removeTab(tab);
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user