Harbs commented on issue #641: Fix PAYG violations and code debt URL: https://github.com/apache/royale-asjs/issues/641#issuecomment-569720073 I just discovered the goog.reflect file which has the following interesting looking functions: ```` /** * Syntax for object literal casts. * @see http://go/jscompiler-renaming * @see https://goo.gl/CRs09P * * Use this if you have an object literal whose keys need to have the same names * as the properties of some class even after they are renamed by the compiler. * * @param {!Function} type Type to cast to. * @param {Object} object Object literal to cast. * @return {Object} The object literal. */ goog.reflect.object = function(type, object) { return object; }; /** * Syntax for renaming property strings. * @see http://go/jscompiler-renaming * @see https://goo.gl/CRs09P * * Use this if you have an need to access a property as a string, but want * to also have the property renamed by the compiler. In contrast to * goog.reflect.object, this method takes an instance of an object. * * Properties must be simple names (not qualified names). * * @param {string} prop Name of the property * @param {!Object} object Instance of the object whose type will be used * for renaming * @return {string} The renamed property. */ goog.reflect.objectProperty = function(prop, object) { return prop; }; ```` I wonder if they might be useful for data binding and other cases where we need string access.
---------------------------------------------------------------- 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] With regards, Apache Git Services
