Opened 12 years ago

Closed 12 years ago

Last modified 10 years ago

#3743 closed defect (fixed)

djConfig.modulePaths does not work if a script attribute

Reported by: James Burke Owned by: James Burke
Priority: high Milestone: 0.9
Component: Loader Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description

This will not work:

<script src="../dojo-0.9.0beta/dojo/dojo.js.uncompressed.js"
djConfig="modulePaths:{'test': '../../test'}"></script>

it will fail because the code that parses out this djConfig happens in hostenv_browser.js, but the code that handles djConfig.modulePaths is in loader.js.

A little bit tricky to do without code bloat. hostenv_browser is the last thing in the bootstrap list.

Change History (1)

comment:1 Changed 12 years ago by James Burke

Resolution: fixed
Status: newclosed

(In [10022]) Fixes #3743. Need to wait until after browser_hostenv does script tag parsing for djConfig. Doing a copy/paste job in all hostenvs to avoid bloating base by having duplicate check in loader.js.

Note: See TracTickets for help on using tickets.