You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2019/11/19 15:56:14 UTC

[GitHub] [royale-asjs] mrvx23 opened a new pull request #576: ExternalInterface.call not correctly resolving object function calls

mrvx23 opened a new pull request #576: ExternalInterface.call not correctly resolving object function calls
URL: https://github.com/apache/royale-asjs/pull/576
 
 
   Issue occurs if attempting to call a sub-function of an object via ExternalInterface.call (e.g. BrowserHistory.getUrl)
   ExternalInterface attempts to find this method via direct string search on window, e.g. window["BrowserHistory.getUrl"]. This fails, because BrowserHistory is an object, with getUrl function.
   
   Fix:
   Added recursive resolution of all function name parts to arrive at the correct function reference to invoke. 
   This allows ExternalInterface to correctly look up the function to call, e.g. window["BrowserHistory"]["getUrl"].

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services