-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
-
Empty show more show less
-
Kromeriz 99
-
1
If you pass returned javascript object (array, json) to the model, it's type gets changed and it does not behave as it should if you pass it again to another model function.
To reproduce:
- Return an JS array from a model function.
- Pass the returned array to another model function.
(Problem is not just with arrays though.)
Result:
- It cannot be iterated with for(var item in input) {
- It cannot be iterated with for each (item in input){
- it does not have a length.
From Jaroslav:
It's something related to freemarker template object wrapping, so fixing it might be a little bit tricky.
Acceptance criteria
- relates to
-
JSMODELS-4 Provide samples of how to use JS models
- Closed