projects
/
org.ibex.xt-crawshaw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes for moving ibex.js to collections
[org.ibex.xt-crawshaw.git]
/
src
/
java
/
ibex
/
xt
/
Template.java
diff --git
a/src/java/ibex/xt/Template.java
b/src/java/ibex/xt/Template.java
index
ac6ea78
..
1d08745
100644
(file)
--- a/
src/java/ibex/xt/Template.java
+++ b/
src/java/ibex/xt/Template.java
@@
-158,9
+158,8
@@
public class Template extends JSElement {
List c = getChildren();
declare((String)varPut);
List c = getChildren();
declare((String)varPut);
- Vec v = ((JSArray)varIn).toVec();
- for (int j=0; j < v.size(); j++) {
- put(varPut, v.elementAt(j));
+ Iterator it = ((JSArray)varIn).toList().iterator(); while (it.hasNext()) {
+ put(varPut, it.next());
for (int i=0; i < c.size(); i++) ((XML.Block)c.get(i)).toXML(w);
}
} catch (JSExn e) { throw new RuntimeException(e); }
for (int i=0; i < c.size(); i++) ((XML.Block)c.get(i)).toXML(w);
}
} catch (JSExn e) { throw new RuntimeException(e); }