diff options
author | teramako | 2011-03-26 08:54:21 +0900 |
---|---|---|
committer | teramako | 2011-03-26 08:54:21 +0900 |
commit | 5e2b19be6bee5033c1c1bfd9cb23bafad6e6ce70 (patch) | |
tree | 86cc43c9dd3ac3de7ed450e1d32cf2a10c85466f /statusline-toolbar.js | |
parent | 0b471a13233119b7924263bc404ce4642625acdd (diff) | |
download | vimperator-plugins-5e2b19be6bee5033c1c1bfd9cb23bafad6e6ce70.tar.bz2 |
update validator
Diffstat (limited to 'statusline-toolbar.js')
-rw-r--r-- | statusline-toolbar.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/statusline-toolbar.js b/statusline-toolbar.js index 1555b56..4de6bd5 100644 --- a/statusline-toolbar.js +++ b/statusline-toolbar.js @@ -121,8 +121,10 @@ function init () { return [ elm.id, elm.getAttribute("label") || "-" ]; })); }, - validator: function (val) { - return true; + validator: function (ids) { + return ids.every(function(id) { + return ($(id) || gToolbox.palette.querySelector("#" + id)); + }); }, }); |