cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dooms (JIRA)" <>
Subject [jira] [Commented] (CB-5488) deviceready event not firing with jQuery Mobile
Date Mon, 03 Mar 2014 05:22:21 GMT


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() {

		platform.initialize && platform.initialize();

                 // EXCEPTION HERE
		// Fire event to notify that all objects are created;

		// Fire onDeviceReady event once page has fully loaded, all
		// constructors have run and cordova info has been received from native
		// side.
		channel.join(function() {
		}, 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:
>             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

View raw message