cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ahmed Kamel (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-3566) InAppBrowser - anonymous callback functions are not called if they reference another function within the JS code
Date Sun, 02 Jun 2013 14:54:19 GMT

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

Ahmed Kamel commented on CB-3566:
---------------------------------

This might only repro with 'executeScript' and not all events
                
> 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
>            Assignee: Steve Gill
>   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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message