Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: Use of Array rather than Object for proxyMap in Model.as - why?  (Read 10595 times)
schickm
Newbie
*
Posts: 9


View Profile Email
« 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.
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 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>
Logged
schickm
Newbie
*
Posts: 9


View Profile Email
« Reply #2 on: September 29, 2008, 04:41:11 »

Sorry, should have searched. 
Logged
Pages: [1]
Print