cujojs/curl — Issue #53: Can't set two paths to the same file
Author: LittleUmbrella
Created: 2012-01-28 04:00:11+00:00
State: open

I'm passing a config that looks like this

...
'paths': {
...
'eaf.util': 'my/eaf/core',
'eaf.core':'my/eaf/core'
...
}

core.js defines both 'eaf.util' and 'eaf.core' by name.

I also have a module that is like this:

define('domain.base', [..., 'eaf.util', 'eaf.core'...], function (...

Trying to load this last module with curl results in "Promise already completed." To get around this, I replaced the throw with a return. Not sure of all the dangers, but I'm just trying to get curl working and am purty frustrated at this point, I have to say. fyi, I'm trying to migrate from http://jsclass.jcoglan.com/ loader pattern, which is why it seems paths are the shortest path to success.