mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-04 06:15:45 +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.modes = modes;
|
||||
this.names = keys.map(events.closure.canonicalKeys);
|
||||
this._keys = keys;
|
||||
this.name = this.names[0];
|
||||
this.action = action;
|
||||
this.description = description;
|
||||
|
||||
if (Object.freeze)
|
||||
Object.freeze(this.modes);
|
||||
|
||||
if (extraInfo)
|
||||
update(this, extraInfo);
|
||||
util.dump("\n\n\n", this.name, extraInfo);
|
||||
},
|
||||
|
||||
/** @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);
|
||||
if (j >= 0) {
|
||||
map.names.splice(j, 1);
|
||||
if (map.names.length == 0)
|
||||
maps.splice(i, 1);
|
||||
if (map.names.length == 0) // FIX ME.
|
||||
for (let [mode, stack] in Iterator(this._user))
|
||||
this._user[mode] = (stack || []).filter(function (m) m != map);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -451,7 +451,6 @@ var Mappings = Module("mappings", {
|
||||
] : [];
|
||||
}
|
||||
};
|
||||
window.userMappings = userMappings;
|
||||
function userMappings() {
|
||||
let seen = {};
|
||||
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
|
||||
* initialization code. Must call superclass's init function.
|
||||
*/
|
||||
init: function () {
|
||||
init: function init() {
|
||||
|
||||
highlight.styleableChrome = this.styleableChrome;
|
||||
highlight.loadCSS(this.CSS);
|
||||
@@ -41,7 +41,7 @@ var ConfigBase = Class("ConfigBase", {
|
||||
|
||||
get addonID() this.name + "@dactyl.googlecode.com",
|
||||
|
||||
styleHelp: function () {
|
||||
styleHelp: function styleHelp() {
|
||||
if (!this.helpStyled)
|
||||
for (let k in keys(highlight.loaded))
|
||||
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,
|
||||
|
||||
removeTab: function (tab) {
|
||||
removeTab: function removeTab(tab) {
|
||||
if (this.tabbrowser.mTabs.length > 1)
|
||||
this.tabbrowser.removeTab(tab);
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user