aboutsummaryrefslogtreecommitdiffstats
path: root/toggler.js
diff options
context:
space:
mode:
authordrry2009-01-09 19:29:29 +0000
committerdrry2009-01-09 19:29:29 +0000
commit75d1415b8b03dfb50f08d00e53c013f6b390368a (patch)
tree39b43db35c67490fc64a5b66c9b3c5a43bacea8e /toggler.js
parente58241048c76a7ab49487662ebc6854e06c481d1 (diff)
downloadvimperator-plugins-75d1415b8b03dfb50f08d00e53c013f6b390368a.tar.bz2
* cosmetic changes.
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@28232 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'toggler.js')
-rw-r--r--toggler.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/toggler.js b/toggler.js
index 56e267f..0f06ca9 100644
--- a/toggler.js
+++ b/toggler.js
@@ -54,10 +54,7 @@ Toggler.prototype = {
if (!notUpdate) this.index = index;
return this.cmds[this.index];
},
- list: function(){
- var data = this.cmds.map(function(cmd, i) [i==this.index ? "*" : "", cmd], this);
- return template.table(this.name, data);
- }
+ list: function() template.table(this.name, this.cmds.map(function(cmd, i) [i==this.index ? "*" : "", cmd], this))
};
var manager = {
add: function(name, cmds){
@@ -89,7 +86,7 @@ var manager = {
reload: function(){
if (liberator.globalVariables.toggler){
settings = {};
- for (var [name, toggler] in Iterator(liberator.globalVariables.toggler))
+ for (let [name, toggler] in Iterator(liberator.globalVariables.toggler))
this.add(name, toggler);
}
},