{ "id": "108620", "key": "AC-1950", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-03-19T18:20:36.000+0000", "created": "2013-01-27T22:12:45.000+0000", "labels": [ "regression", "triage" ], "versions": [], "issuelinks": [], "assignee": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:40:52.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "h2. Problem\r\n\r\nBuilding for MobileWeb doesn't use the mobileweb specific files which are located in the mobileweb directory\r\n\r\n/Resources\r\n /Logic\r\n db.js\r\n /mobileweb\r\n /Logic\r\n db.js\r\n\r\n\r\n\r\nh2. Test case\r\n\r\n1. Create new Titanium Project with template \"Single Window Application\"\r\n2. Create a db.js file in /Resources/ with content:\r\n{code:lang=none|title=console}\r\nexports.initializeDB = function() {'use strict';\r\n\treturn 'Standard DB Initialized';\r\n};\r\n{code}\r\n3. Create db.js file in /Resources/mobileweb/ with content:\r\n{code:lang=none|title=console}\r\nexports.initializeDB = function() {'use strict';\r\n\treturn 'MobileWeb DB Initialized';\r\n};\r\n{code}\r\n4. Use this file somewhere for UI\r\n{code:lang=none|title=console}\r\nvar db = require('/db');\r\nvar label = Ti.UI.createLabel({\r\n\t\tcolor:'#000000',\r\n\t\ttext:db.initializeDB(),\r\n\t\theight:'auto',\r\n\t\twidth:'auto'\r\n\t});\r\n{code}\r\n5. Build for iOS and see text 'Standard DB Initialized'\r\n6. Build for MobileWeb and see same text instead of 'MobileWeb DB Initialized'", "attachment": [], "flagged": false, "summary": "Mobile Web-specific code doesn't get used", "creator": { "name": "melbek", "key": "melbek", "displayName": "Bek Bay", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "melbek", "key": "melbek", "displayName": "Bek Bay", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OSX 10.7.5, Titanium Studio 3.0.1.201212181159", "comment": { "comments": [ { "id": "236171", "author": { "name": "melbek", "key": "melbek", "displayName": "Bek Bay", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Only with SDK 3.0.0GA, works with 2.x", "updateAuthor": { "name": "melbek", "key": "melbek", "displayName": "Bek Bay", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-28T13:26:01.000+0000", "updated": "2013-01-28T13:26:01.000+0000" }, { "id": "242956", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Chris, thoughts?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-19T18:01:09.000+0000", "updated": "2013-03-19T18:01:09.000+0000" }, { "id": "242965", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I can't reproduce a problem here. Everything works as expected.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-03-19T18:20:36.000+0000", "updated": "2013-03-19T18:20:36.000+0000" }, { "id": "287920", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~melbek] We have not been able to reproduce this issue. Can you please try out the latest release (3.2.0 GA) and let us know if the issue persists?", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-12T20:12:18.000+0000", "updated": "2014-01-12T20:12:18.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }