[
https://issues.apache.org/jira/browse/CB-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13917752#comment-13917752
]
Dooms commented on CB-5488:
---------------------------
I would like to add to this issue.
It seems that any exception generated in the following cordova.js , causes the
deviceready not to fire:
channel.join(function() {
modulemapper.mapModules(window);
platform.initialize && platform.initialize();
// EXCEPTION HERE
// Fire event to notify that all objects are created
channel.onCordovaReady.fire();
// Fire onDeviceReady event once page has fully loaded, all
// constructors have run and cordova info has been received
from native
// side.
channel.join(function() {
require('cordova').fireDocumentEvent('deviceready');
}, channel.deviceReadyChannelsArray);
}, platformInitChannelsArray);
Tracing back, the exception is being generated inside createExecIframe():
'null' is not an object (evaluating document.body.appendChild)
The events not fired after 5 seconds are onCordovaInfoReady and
onCordovaConnectionReady
> deviceready event not firing with jQuery Mobile
> -----------------------------------------------
>
> Key: CB-5488
> URL: https://issues.apache.org/jira/browse/CB-5488
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 3.1.0
> Reporter: Federico Kereki
> Assignee: Shazron Abdullah
>
> If you use PhoneGap + jQuery + jQuery Mobile, the deviceready event doesn't
> fire. Googling around, I found several similar reports, all pointing out that
> if jQuery Mobile isn't included, the event fires.
--
This message was sent by Atlassian JIRA
(v6.2#6252)