mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 22:28:00 +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) {
|
||||
XML.ignoreWhitespace = false; XML.prettyPrinting = false;
|
||||
if (iter.length) // FIXME: Kludge?
|
||||
if (typeof iter.length == "number") // FIXME: Kludge?
|
||||
iter = array.iterValues(iter);
|
||||
let res = <></>;
|
||||
let n = 0;
|
||||
|
||||
Reference in New Issue
Block a user