cujojs/curl — Issue #51: "!order" breaks with module loaded outside require()
Author: purcell
Created: 2012-01-21 20:10:21+00:00
State: open

I'm porting a non-AMD app from script.js to curl.js, converting to AMD modules as I go along.

I figured I could start off by wrapping some non-AMD libs in `define()`, starting with jQueryUI, then ran into what I believe is a curl.js bug, but could also be idiocy on my part.

I'll summarise the scenario as follows:

```html

```

The result is:

```
Uncaught TypeError: Object function (a,b){return new e.fn.init(a,b,h)} has no method 'load' curl.js:564
```

Now, removing the "!order" tag makes the problem go away, but it doesn't seem like the Right Thing To Do. I guess that in the above code, jquery isn't getting loaded via `require`, so perhaps that confuses the `order` plugin.

-Steve