diff options
author | drry | 2009-01-09 19:29:29 +0000 |
---|---|---|
committer | drry | 2009-01-09 19:29:29 +0000 |
commit | 75d1415b8b03dfb50f08d00e53c013f6b390368a (patch) | |
tree | 39b43db35c67490fc64a5b66c9b3c5a43bacea8e /toggler.js | |
parent | e58241048c76a7ab49487662ebc6854e06c481d1 (diff) | |
download | vimperator-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.js | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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); } }, |