]
Peter Palaga resolved GTNPORTAL-3396.
-------------------------------------
Fix Version/s: 3.8.0.Final
Resolution: Done
Fixed by
Support all possible js module dependency names in define()
-----------------------------------------------------------
Key: GTNPORTAL-3396
URL:
https://issues.jboss.org/browse/GTNPORTAL-3396
Project: GateIn Portal
Issue Type: Task
Security Level: Public(Everyone can see)
Affects Versions: 3.7.0.Final
Reporter: Peter Palaga
Assignee: Peter Palaga
Fix For: 3.8.0.Final
Let's have a dependeny graph as simple as:
dojo/sniff depends on dojo/has
Given that both dojo/sniff and dojo/has live in the same directory named
"dojo", the dojo/sniff.js file starts with
define(["./has"], function(has){
Note the relative module path name "./has" there. Relative paths comply with
the AMD spec [1] and "../<someModule>" should also be supported.
Using such relative module names in define() does not seem to work in GateIn.
[1]
https://github.com/amdjs/amdjs-api/wiki/AMD