estanglerbm opened a new pull request #1009: URL: https://github.com/apache/royale-asjs/pull/1009
For Proxy or ObjectProxy, the compiler will generate a call to propertyNames() for both: ``for each (value in objproxy)`` and ``for (key:String in objproxy)`` For the second case, key is then equal to a number, instead of the key name. (For the first case, traditionally you would modify getProperty() to take a number-string argument and return the appropriate value, and it's used automatically.) As a workaround for both cases for ObjectProxy, the "object" (legacy) property is implemented, so you can do this instead: ``for each (value in objproxy.object)`` and ``for (key:String in objproxy.object)`` Not convenient enough, but it works. This is only for the JS side; it doesn't work on SWF (because object_proxy designation is protected), in Royale or Flex. (Legacy "object" property is protected, not public, but JS side is already exposing several other protected functions--in this class and others--as public.) ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
