Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-3349

iOS: Ti.include() not handling relative pathing properly

    Details

      Description

      {html}<div><p>This is the companion ticket to <a href=
      "/projects/32238/tickets/2585" title="Ticket #2585">#2585</a>.</p>
      <p>The tests are already in drillbit – see the "includes" test
      suite in drillbit. So for purposes of meeting our ticketing
      guideline for "Reproduction sequence", the drillbit suite
      suffices.</p>
      <p>But here's a short summary example as well:</p>
      <p><strong>Resources/app.js</strong></p>
      <pre>
      <code class="javascript">Ti.include("l2/l2_included.js");</code>
      </pre>
      <p><strong>Resources/l2/l2_included.js</strong></p>
      <pre>
      <code class=
      "javascript">Ti.include("../l1_included.js"); // Fails</code>
      </pre>
      <p><strong>Resources/l1_included.js</strong></p>
      <pre>
      <code class=
      "javascript">Ti.API.info("You've reached Resources/l1_included.js");</code>
      </pre></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              blainhamon Blain Hamon
              Reporter:
              billdawson Bill Dawson
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code