cordova-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/CB-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13917752#comment-13917752
] 

Dooms edited comment on CB-5488 at 3/3/14 5:20 AM:
---------------------------------------------------

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

That's as far as I've got so far.


was (Author: dooms):
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)

Mime
View raw message