cujojs/curl — Issue #56: underscore shim not working on dev branch
Author: trodrigues
Created: 2012-02-02 12:01:51+00:00
State: open

I am running the following test to check if the underscore shim solves the problems it should be solving:

```javascript
require(['curl/shim/underscore'], function() {
console.log('loaded!');
require(['underscore'], function(_) {
console.log(_.template);
});
});
```

The reason why I'm checking for template is because it's the last thing to be defined on underscore (this is 1.2.2 btw).

After taking a look at the shim code and poking it for a while, it looks like when it tries to get core['_define'], it's still not defined, so it might get overwritten later. I've tried a few setTimeouts but nothing seemed to solve the issue.