> In using javascript and the iterator, I've encountered a scenario where
> decreasing iterations doesn't seem to properly influence the output of the
> javascript.
> In this attachment, if the iteration count is decreased, the number of
> indices on the output does not decrease. Is this correct in function?
> _spread = []
> function (__structure spread) main (__structure iPosition, __index index)
> {
> var result = new Object();
> _spread[index] = iPosition;
> result.spread = _spread;
> return result;
> }
1) add a semicolon after []. (it's not strictly necessary, but it's good form).
2) where are you unsetting dead indices? I don't see any logic in there
capable of writing to _spread[N] where N > index. As such, decreasing the
iteration count will decrease index's range, but will do nothing to change
_spread's already-present members.
In light of item 2, I am of the opinion that this behaves correctly.
--
Christopher Wright
[email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com
This email sent to [email protected]