cujojs / curl

curl.js is small, fast, extensible module loader that handles AMD, CommonJS Modules/1.1, CSS, HTML/text, and legacy scripts.
https://github.com/cujojs/curl/wiki
Other
1.89k stars 216 forks source link

trying to AMD-ify jquery colorbox #194

Closed szepeviktor closed 11 years ago

szepeviktor commented 11 years ago

https://github.com/jackmoore/colorbox/blob/master/jquery.colorbox.js

trying to add define to the top or bottom, I always get jQuery is not defined.

Maybe it is unpossible to add AMD compatibility in a few lines? (with js! and !order it works fine)

curl(['jquery', 'jqcolorbox'], callback); Please help me, i am a beginner in curl.

unscriptable commented 11 years ago

Hello @szepeviktor,

I think I answered this in #195. You must wrap a file if it has dependencies. Please reopen this issue if I am mistaken.

Regards,

-- John