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

use lambda notation for setter and getter definitions where appropriate

This commit is contained in:
Doug Kearns
2008-09-24 06:03:42 +00:00
parent 804b1fd62f
commit f478f57c57
6 changed files with 16 additions and 21 deletions

View File

@@ -191,9 +191,9 @@ liberator.modes = (function () //{{{
yield modes[i];
},
get all() { return [this.NONE, this.NORMAL, this.INSERT, this.VISUAL,
this.HINTS, this.COMMAND_LINE, this.CARET,
this.TEXTAREA, this.MESSAGE, this.COMPOSE, this.CUSTOM]; },
get all() [this.NONE, this.NORMAL, this.INSERT, this.VISUAL,
this.HINTS, this.COMMAND_LINE, this.CARET,
this.TEXTAREA, this.MESSAGE, this.COMPOSE, this.CUSTOM],
// show the current mode string in the command line
show: function ()
@@ -301,9 +301,7 @@ liberator.modes = (function () //{{{
},
get extended() extended,
set extended(value) {
extended = value; this.show();
}
set extended(value) { extended = value; this.show(); }
};
//}}}