[TIMOB-503] Titanium.include path not relative to file calling it 0.9.2
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2011-04-15T02:30:29.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | jhicks (at cteh) |
Assignee | Reggie Seagraves |
Created | 2011-04-15T02:30:28.000+0000 |
Updated | 2017-03-09T21:20:27.000+0000 |
Description
When you use Titanium.include from script that was itself included, the path is computed as if you called Titanium.include from the originating script.
Assuming these files:
Folder1
-> OriginalScript.js
Folder2
-> Include1.js
-> Include2.js
If from OriginalScript.js you call Titanium.include("../Folder2/Include1.js") and then from Include1.js you call Titanium("Include2.js"), it will fail to find Include1.js because it is looking in Folder1.
+1 for this
Is this related to ticket #802 ?
https://appcelerator.lighthouseapp.com/projects/32238-titanium-mobile/tickets/802"> https://appcelerator.lighthouseapp.com/projects/32238-titanium-mobi...
createImageView suffers from the same problem, where the calling script specifies the image location in a parent/grandparent directory (or subdirectory thereof) the ../ parts (signifying "go up one directory) of the relative location is ignored.
Duplicate of #802.
Closing ticket as invalid.