GitHub user sgrebnov opened a pull request: https://github.com/apache/cordova-plugin-inappbrowser/pull/125
CB-9445 Improves executeScript callbacks on iOS https://issues.apache.org/jira/browse/CB-9445 The following code could be used for tests ``` var ref = window.open('http://apache.org', '_blank', 'location=yes'); ref.addEventListener('loadstart', function() { ref.executeScript({code: "window.some_var = 'some value';"},function(){ ref.executeScript({code: "window.some_var2 = 'some value2';"},function(){ alert('loadstart2 callback'); }); alert('loadstart1 callback'); }); }); ref.addEventListener('loadstop', function() { ref.executeScript({code: "alert('loadstop code:' + window.some_var + ' '+ window.some_var2);"},function(){alert('loadstop callback');}); }); ``` You can merge this pull request into a Git repository by running: $ git pull https://github.com/MSOpenTech/cordova-plugin-inappbrowser CB-9445 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cordova-plugin-inappbrowser/pull/125.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #125 ---- commit 8456a7692663e4e87d0775b5aa428b86f971f3d0 Author: sgrebnov <v-seg...@microsoft.com> Date: 2015-11-20T16:15:55Z CB-9445 Improves executeScript callbacks on iOS ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org