1
0
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:
Kris Maglione
2012-01-12 15:43:22 -05:00
parent 31e1ceea24
commit cc38e7057d

View File

@@ -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;