CF copies objects by reference. Each time you changed the object in
the loop, you updated each previous reference. You could use
duplicate() to put a copy into the array.

mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/



2010/1/14 Jonathan Price <jonat...@imakehthissound.com>:
>
> 2)  Should my previous version have worked?  I don't mind doing this 'local' 
> trick everywhere, but I am curious about why the original wasn't working 
> properly.
>
> Thank

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329657
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to