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

Rename Modes.StackElem and CommandWidgets.addElem to *Element.

--HG--
extra : rebase_source : f52b838e76dde8acc41bb382a505627e9c9f02dd
This commit is contained in:
Doug Kearns
2010-11-05 18:52:28 +11:00
parent 27d8ee04bb
commit e927c521d9
2 changed files with 10 additions and 10 deletions

View File

@@ -227,7 +227,7 @@ const Modes = Module("modes", {
stack.pop.params.leave(stack, this.topOfStack);
let push = mainMode != null && !(stack && stack.pop) &&
Modes.StackElem(this._main, this._extended, params, {});
Modes.StackElement(this._main, this._extended, params, {});
if (push && this.topOfStack) {
if (this.topOfStack.params.leave)
this.topOfStack.params.leave({ push: push }, push);
@@ -315,7 +315,7 @@ const Modes = Module("modes", {
get extended() this._extended,
set extended(value) { this.set(null, value); }
}, {
StackElem: (function () {
StackElement: (function () {
let struct = Struct("main", "extended", "params", "saved");
struct.prototype.__defineGetter__("mainMode", function () modes.getMode(this.main));
struct.prototype.toString = function () !loaded.modes ? this.main : "[mode " +