diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-01-02 16:56:18 -0500 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-01-02 16:56:18 -0500 |
commit | fbd7556a76aee96225391e8842274b03a1c05d4a (patch) | |
tree | a1c4dba084a3de4cf8cbadb447cae495e932f4d7 /common/content/io.js | |
parent | 91f02c9763e1eb32768438366076fb1cc4b5298d (diff) | |
download | pentadactyl-fbd7556a76aee96225391e8842274b03a1c05d4a.tar.gz |
Move iteration utility functions to the iter namespace.
Diffstat (limited to 'common/content/io.js')
-rw-r--r-- | common/content/io.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/content/io.js b/common/content/io.js index ceef0ef8..7e494fa4 100644 --- a/common/content/io.js +++ b/common/content/io.js @@ -466,7 +466,7 @@ var IO = Module("io", { * otherwise, the return value of *func*. */ withTempFiles: function (func, self, checked) { - let args = util.map(util.range(0, func.length), this.createTempFile); + let args = array(util.range(0, func.length)).map(this.createTempFile); try { if (!args.every(util.identity)) return false; @@ -688,7 +688,7 @@ unlet s:cpo_save let lines = []; lines.__defineGetter__("last", function () this[this.length - 1]); - for (let item in (isArray(items) ? array.iterValues : iter)(items)) { + for (let item in values(items.array || items)) { if (item.length > width && (!lines.length || lines.last.length > 1)) { lines.push([prefix]); width = WIDTH - prefix.length; |