`array` in the javascript should be `this.fieldValue`.
The `this` object in the script scope should at least have `{fieldValue: ['one','two'], fieldName: 'nameOfArray'}`.
similar but off topic:
This is in line with the required `eval()` global scope fix, if and when javascript requires `.bind()` to access variables in the outer `eval()` scope, fixing that access problem in the language using the existing `.bind()` construct.
`array` in the javascript should be `this.fieldValue`.
The `this` object in the script scope should at least have `{fieldValue: ['one','two'], fieldName: 'nameOfArray'}`.
similar but off topic:
This is in line with the required `eval()` global scope fix, if and when javascript requires `.bind()` to access variables in the outer `eval()` scope, fixing that access problem in the language using the existing `.bind()` construct.