phonegap/phonegap-plugins — Issue #349: closing ChildBrowser throws javascript exception  PG 1.4.1 / iOS 5.0
Author: tribalvibes
Created: 2012-02-04 12:51:23+00:00
State: open

Whether via `window.plugins.childBrowser.close()` or hitting the 'Done' button, in the iOS 5.0 simulator I'm getting a javascript `TypeError: 'undefined' is not a function in undefined:0` which is caught by `window.onerror` with no other information available.

The exception is thrown when executing this line in `ChildBrowserViewController#closeBrowser`:
` [[self presentingViewController] dismissViewControllerAnimated:YES completion:nil]; `

This is built for iOS SDK 5.0 with XCode 4.2.1. Running the identical build in the iOS 4.3 simulator does not produce the exception (because it does not execute this line.)

Any ideas what this could be or how to track it down? Why is the exception being thrown in a javascript context--is there a PG callback being triggered? Which one?

New to PG. Thanks!
@.tv/