PureMVC Architects Lounge

PureMVC Manifold => Standard Version => Topic started by: schickm on September 29, 2008, 02:48:21



Title: Use of Array rather than Object for proxyMap in Model.as - why?
Post by: schickm on September 29, 2008, 02:48:21
So I was poking around inside of the source code for Model.as and I noticed that the proxyMap was an Array, but wasn't really using any functionality that was in Array that isn't offered by the standard Object.  Is there something that I'm missing here?  I'm not trying to criticize the code to try and massage my ego, I'm just wondering if there is something going on here that I've never learned about?  Some specialness with Array that Object doesn't offer you in this situation.


Title: Re: Use of Array rather than Object for proxyMap in Model.as - why?
Post by: puremvc on September 29, 2008, 04:09:55
This particular horse was roundly thrashed in the following thread:

http://forums.puremvc.org/index.php?topic=473.0

Ultimately its a purely cosmetic choice, but I've used Array as an associative array / map for years of AS coding, and it continues to perform perfectly well in that regard.

:)
-=Cliff>


Title: Re: Use of Array rather than Object for proxyMap in Model.as - why?
Post by: schickm on September 29, 2008, 04:41:11
Sorry, should have searched.