[ 
https://issues.apache.org/jira/browse/CB-3566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13874119#comment-13874119
 ] 

Jesse MacFadyen edited comment on CB-3566 at 1/16/14 11:08 PM:
---------------------------------------------------------------

This is the expected behaviour.  The code is being run in a different 
javascript engine, so it is not possible to de-reference objects across the 
bridge.


was (Author: purplecabbage):
This is the expected behaviour.  The code is being written in a different 
javascript engine, so it is not possible to de-reference objects across the 
bridge.

> InAppBrowser - anonymous callback functions are not called if they reference 
> another function within the JS code
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-3566
>                 URL: https://issues.apache.org/jira/browse/CB-3566
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin InAppBrowser
>    Affects Versions: 2.7.0
>         Environment: iOS
>            Reporter: Ahmed Kamel
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> If the callback passes to an InAppBrowser event is an anonymous method, said 
> anonymous method will ONLY be called if it does _not_ reference any other 
> functions within the JS code.
> ex:
> function foo(){console.log('hello from foo');}
> ref.addEventListener('loadstop', function(e){
>   // this callback will not be called
>   console.log('hello from loadstop);
>   foo();
> });



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to