What steps will reproduce the problem?
1. PhoneGapStandardImpl fails in Internet Explorer 8 (IE8)
2. at setupReadyHook() when trying to set 'addEventListener'
Of course IE8 is not relevant on mobile devices but I want our app to run as a
mobile app and on the web too.
I guess I could link GwtPhonegap only for the app, but I want to minimize
parallel development and for instance use the PhoneGap Plugin API also for the
web version.
What version of the product are you using? On what operating system?
2.0.0.0
Please provide any additional information below.
Workaround. I am linking a clone of PhoneGapStandardImpl for IE8 with the
following changed setupReadyHook method:
>>
private native void setupReadyHook() /*-{
var that = this;
var f = function() {
that.@com.apsburg.lib.gwt.client.lib.cordova.PhoneGapStandardImplIE8::nativeDevi
ceReady()();
};
if(!$doc.addEventListener) {
$doc.attachEvent("deviceready", new function() {
$entry(f)();
});
} else {
$doc.addEventListener("deviceready", $entry(f), false);
}
}-*/;
<<
Original issue reported on code.google.com by robert.h...@gmail.com on 31 Oct 2013 at 7:08
Original issue reported on code.google.com by
robert.h...@gmail.com
on 31 Oct 2013 at 7:08