aboutsummaryrefslogtreecommitdiffstats
path: root/_libly.js
diff options
context:
space:
mode:
authorsuVene2008-12-09 12:50:34 +0000
committersuVene2008-12-09 12:50:34 +0000
commitbb351bc24a1942be38ce955874c99ce9dfe7f03d (patch)
tree65ae473b10abe60c341a0749a926a402a1ae7f41 /_libly.js
parent6de3fa6a8a6777c30f6b8e5ae4180c091995acd9 (diff)
downloadvimperator-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.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/_libly.js b/_libly.js
index 301a552..b6a6da6 100644
--- a/_libly.js
+++ b/_libly.js
@@ -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;
},