[TIMOB-3170] Android Bug: JSS ignored if file has an include
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T02:01:06.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Sprint-2011-08 |
Components | Android |
Labels | android, defect, include, jss, release-1.7.0, rplist |
Reporter | Alan Leard |
Assignee | Don Thorp |
Created | 2011-04-15T03:38:41.000+0000 |
Updated | 2011-04-17T02:01:06.000+0000 |
Description
If you have an app.js with an app.jss everything works fine. If you add any Ti.include into the file the app.jss is ignored.
Ticket reference: http://developer.appcelerator.com/helpdesk/view/73861">http://developer.appcelerator.com/helpdesk/view/73861
Fixing tags, fixing title to conform to ticket guidelines.
@Ben or @Alan what version of the mobilesdk?
Hi Don, I tested with 1.6 RC1 and the 1.7.x build series from Feb 15th. Both had the issue.
An additional point, it isn't limited to app.js and app.jss it appears to be an issue on any window with Ti.include
I noticed the same issue on 1.6.0 with Android.
Simple failcase:
app.js:
app.jss:
test.js:
The button that displays should be a "big" (height 80) button with some big text on it. But you'll just get a normal button with normal font size in the failcase.
(from [da7f39dbb79b4bc8230ba36d0698f8e51e493701]) When evalFile called for Ti.include(), make sure context's url gets set back to original else things that depend on the filename -- like JSS -- break. [#3170 state:fixed-in-qa] https://github.com/appcelerator/titanium_mobile/commit/da7f39dbb79b4bc8230ba36d0698f8e51e493701"> https://github.com/appcelerator/titanium_mobile/commit/da7f39dbb79b...
Tested with Titanium SDK version: 1.7.0 (03/01/11 16:09 e613126)
G1 1.6
GalaxyTab 2.2
iPhone 4 OS 4.2.1
Emulator 2.1
@Bill should this get onto 1.6.1. Seems like it should to me.