{ "id": "84533", "key": "TIMOB-7019", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "12095", "description": "", "name": "Sprint 2012-03", "archived": true, "released": true, "releaseDate": "2012-02-12" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-02-14T23:29:00.000+0000", "created": "2012-01-06T11:04:41.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_include", "parity", "qe-testadded" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [ { "id": "15078", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "86126", "key": "TIMOB-7552", "fields": { "summary": "Android: FastDev: Ti.include: blank include files fail to load and invalidates app", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-03T23:11:24.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Ti.include blocks global variables incorrectly.\r\nh4. Repro Steps: \r\nCreate a project to include the code below.\r\n\r\n{code}\r\n//app.js\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar headerView = Ti.UI.createView();\r\n\r\nTi.include('test2.js');\r\n\r\nwin.add(headerView);\r\nwin.open();\r\n{code}\r\n\r\n{code}\r\n//test2.js\r\nvar otherView = Ti.UI.createView();\r\n\r\nheaderView.add(otherView);\r\n{code}", "attachment": [ { "id": "25431", "filename": "TestCase.zip", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-31T15:51:04.000+0000", "size": 1890, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Ti.Include blocks global variable.", "creator": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android Emulator 2.3, both V8 and Rhino", "comment": { "comments": [ { "id": "178820", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am not noticing any issues after correcting that code.\r\nNone of the views will be visible as is. Giving them background color and some\r\nwidth & height does. I also declared a variable in my app.js and was able to access\r\nit just fine in the included file.\r\n\r\nCan you verify this with a recent CI build and if your issue\r\nis still present can you document the behavior you see and what you expect.\r\n", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-10T19:11:26.000+0000", "updated": "2012-01-10T19:11:26.000+0000" }, { "id": "178886", "author": { "name": "arood", "key": "arood", "displayName": "Marcus Olovsson", "active": true, "timeZone": "Europe/Berlin" }, "body": "I think I am having the same problem as the creator of this ticket. I have reported this, with a code example, in Helpdesk: http://support.appcelerator.com/tickets/APP-553113\r\n\r\nThe issue remains in the latest master CI-build.", "updateAuthor": { "name": "arood", "key": "arood", "displayName": "Marcus Olovsson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-01-11T10:49:57.000+0000", "updated": "2012-01-11T10:49:57.000+0000" }, { "id": "181278", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This test case should show an alert message. Verifies the global scope is accessible from an included file.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-31T15:51:04.000+0000", "updated": "2012-01-31T15:51:04.000+0000" }, { "id": "181279", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Unable to reproduce this issue anymore with Rhino runtime.\r\n", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-31T15:51:50.000+0000", "updated": "2012-01-31T15:51:50.000+0000" }, { "id": "181282", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[Pull Request #1317|https://github.com/appcelerator/titanium_mobile/pull/1317]", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-31T15:56:06.000+0000", "updated": "2012-01-31T15:56:06.000+0000" }, { "id": "182092", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cannot verify bug fix until FastDev works with blank Ti.include files. TIMOB-7552.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-06T13:43:52.000+0000", "updated": "2012-02-06T13:43:52.000+0000" }, { "id": "182488", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as Fixed.\r\nSDK: 1.9.0.v20120207171634\r\nAndroid: V8/Rhino\r\nStudio: 1.0.8.201201262211\r\nOS: Lion\r\nDevices Tested: Droid3 2.3.4, Xoom 3.2.1\r\n\r\nNote: Cannot be tested on the emulator due to linked FastDev issue.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-08T16:08:57.000+0000", "updated": "2012-02-08T16:08:57.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }