mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 00:37:58 +01:00
Fix template.map with Iter objects.
This commit is contained in:
@@ -105,7 +105,7 @@ var Template = Module("Template", {
|
|||||||
|
|
||||||
map: function map(iter, func, sep, interruptable) {
|
map: function map(iter, func, sep, interruptable) {
|
||||||
XML.ignoreWhitespace = false; XML.prettyPrinting = false;
|
XML.ignoreWhitespace = false; XML.prettyPrinting = false;
|
||||||
if (iter.length) // FIXME: Kludge?
|
if (typeof iter.length == "number") // FIXME: Kludge?
|
||||||
iter = array.iterValues(iter);
|
iter = array.iterValues(iter);
|
||||||
let res = <></>;
|
let res = <></>;
|
||||||
let n = 0;
|
let n = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user