Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8010] MobileWeb : require/include - An error is generated when a .js file is required

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-03-16T17:58:07.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sRelease 2.0.0, Sprint 2012-06
ComponentsMobileWeb
Labelsqe-mw020912, qe-port
ReporterMichael Pettiford
AssigneeChris Barber
Created2012-03-14T14:14:38.000+0000
Updated2012-08-08T16:28:06.000+0000

Description

Steps to reproduce: 1. Create a default mobile web app and replace the resources directory with the one attached 2. Run the app Actual result: The console displays the error "TypeError: Result of expression 'refModule.cjs' [undefined] is not a valid argument for 'in'." Expected result: An alert is displayed with the message "Does this app work (YES/NO)? Answer: YES"

Attachments

FileDateSize
Resources.zip2012-03-14T14:14:38.000+00002311398

Comments

  1. Lokesh Choudhary 2012-08-08

    Tested On: Titanium studio : 2.1.1.201207271312 SDK version : 2.2.0.v20120807144112 Android 4.0.4 - default ,chrome 18.0 Iphone 4.3.5 - safari mobile Mountain lion(10.8) - chrome 21.0,safari 5.1.4,firefox 14.0.1

JSON Source