Opened 8 years ago

Closed 7 years ago

#15217 closed defect (wontfix)

dojox.mobile.app fails to load properly from 1.7.2 compressed versions (cdn, release)

Reported by: mwpoje Owned by: Shane O'Sullivan
Priority: undecided Milestone: tbd
Component: DojoX Mobile Version: 1.7.2
Keywords: Cc: Eric Durocher
Blocked By: Blocking:

Description

Dojox.mobile.app loads as expected and functions properly from the src version of 1.7.2 using

<script type="text/javascript">
	var dojoConfig = ( function () {
		return {
			isDebug: true, 
			parseOnLoad: false
		};
	})();
</script>
<script type="text/javascript" src="/dojo-toolkit/1.7.2/dojo/dojo.js"></script>
<script type="text/javascript">
	dojo.require("dojox.mobile.app");
	dojo.requireIf(!dojo.isWebKit, "dojox.mobile.app.compat");
	var appInfo = {
		id: "com.test.testApp",
		title: "Mobile App",
		initialScene: "auth"
	};
	dojo.ready(dojox.mobile.app.init);  // <-- failure on this line
</script>

However, this will fail with

TypeError?: 'undefined' is not an object (evaluating 'dojox.mobile.app')

... on both the google CDN version -
http://ajax.googleapis.com/ajax/libs/dojo/1.7.2/dojo/dojo.js
... and the release version downloaded from
http://download.dojotoolkit.org/release-1.7.2/dojo-release-1.7.2.tar.gz
Initially, believed it was a CDN async/sync related issue, but upon further testing showed the same issue on a locally sourced "release" (e.g. compressed) version as well; leading me to believe that it is an issue with the minification and the mobile app init process.

Change History (2)

comment:1 Changed 8 years ago by ykami

Cc: Eric Durocher added
Owner: changed from ykami to Shane O'Sullivan
Status: newassigned

comment:2 Changed 7 years ago by bill

Resolution: wontfix
Status: assignedclosed

dojox/mobile/app is deprecated in favor of dojox/app, and presumably will be removed in 2.0, so seems like we should mark this as wontfix.

Note: See TracTickets for help on using tickets.