[TIMOB-2170] Android: regression in Ti.App.fireEvent from within WebView context on 1.5 trunk
|Labels||android, android_refactor, events, fireevent, patch, regression, ti.app, webview|
I believe I've tracked it to commit 7926eda7aad2fa2073aad2849f4ed890c5807e00
This commit removes AppModule.fireEvent(), which used to override the default KrollProxy event handler function with a call to fireAppEvent() on the current app retrieved from the current context. I believe that breaks the code in TiWebViewBinding.AppBinding.fireEvent(), which calls fireEvent() directly on a private AppModule instance.
With the AppModule.fireEvent() hack removed, it looks like that'll just fire events on the individual instance and not call the global application.
- Brion Vibber 2011-04-15
Provisional fix that works for me:
- Marshall Culpepper 2011-04-15
(from [9a3a817dd712309535cad518dae779ce24b7d5ba]) pull the App and API modules from TiApp instead of creating them for each instance, thanks to Brion Vibber for the find and suggestion. also cleared up some warnings [#2170 state:fixed-in-qa] http://github.com/appcelerator/titanium_mobile/commit/9a3a817dd712309535cad518dae779ce24b7d5ba"> http://github.com/appcelerator/titanium_mobile/commit/9a3a817dd7123...
- Thomas Huelbert 2011-04-15
Titanium SDK version: 1.5.0 (12/04/10 08:46 b7b9e78)