{ "id": "61135", "key": "TIMOB-503", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2011-04-15T02:30:29.000+0000", "created": "2011-04-15T02:30:28.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T21:20:27.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

When you use Titanium.include from script that was itself\nincluded, the path is computed as if you called Titanium.include\nfrom the originating script.

\n

Assuming these files:

\n
\nFolder1\n-> OriginalScript.js\n\nFolder2\n-> Include1.js\n-> Include2.js\n
\n

If from OriginalScript.js you call\nTitanium.include(\"../Folder2/Include1.js\") and then from\nInclude1.js you call Titanium(\"Include2.js\"), it will fail to find\nInclude1.js because it is looking in Folder1.

{html}", "attachment": [], "flagged": false, "summary": "Titanium.include path not relative to file calling it 0.9.2", "creator": { "name": "jhicks(atcteh)", "key": "jhicks(atcteh)", "displayName": "jhicks (at cteh)", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jhicks(atcteh)", "key": "jhicks(atcteh)", "displayName": "jhicks (at cteh)", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "123406", "author": { "name": "jaehess", "key": "jaehess", "displayName": "Jae Hess", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

+1 for this

{html}", "updateAuthor": { "name": "jaehess", "key": "jaehess", "displayName": "Jae Hess", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:28.000+0000", "updated": "2011-04-15T02:30:28.000+0000" }, { "id": "123407", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Is this related to ticket #802 ?
\n\nhttps://appcelerator.lighthouseapp.com/projects/32238-titanium-mobi...

\n

createImageView suffers from the same problem, where the calling\nscript specifies the image location in a parent/grandparent\ndirectory (or subdirectory thereof) the ../ parts (signifying \"go\nup one directory) of the relative location is ignored.

{html}", "updateAuthor": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:28.000+0000", "updated": "2011-04-15T02:30:28.000+0000" }, { "id": "123408", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Duplicate of #802.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:29.000+0000", "updated": "2011-04-15T02:30:29.000+0000" }, { "id": "410532", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T21:20:27.000+0000", "updated": "2017-03-09T21:20:27.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }