diff options
author | suVene | 2008-12-09 12:50:34 +0000 |
---|---|---|
committer | suVene | 2008-12-09 12:50:34 +0000 |
commit | bb351bc24a1942be38ce955874c99ce9dfe7f03d (patch) | |
tree | 65ae473b10abe60c341a0749a926a402a1ae7f41 /_libly.js | |
parent | 6de3fa6a8a6777c30f6b8e5ae4180c091995acd9 (diff) | |
download | vimperator-plugins-bb351bc24a1942be38ce955874c99ce9dfe7f03d.tar.bz2 |
* _libly.js ver.0.1.4にあわせた修正 [26222]
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@26225 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to '_libly.js')
-rw-r--r-- | _libly.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -102,6 +102,9 @@ libly.$U = {//{{{ }, A: function(hash, iter) { var ret = []; + if (typeof hash == 'undefined') return ret; + if (typeof hash == 'string') return [hash]; + if (hash.toArray) return hash.toArray(); for each (let item in hash) ret.push(item); return ret; }, |