fengtianxp
fengtianxp

Reputation: 51

Using dojo 1.8 with requirejs

Does anyone has the experience integrate dojo 1.8 with requrejs? If I use requrejs to load dojo/dijit/dojox it will throw some exceptions about has.js not work correctly.

TypeError: _3.add is not a function
_3.add("dom-addeventlistener",!!document.addEventListener);

Upvotes: 5

Views: 1014

Answers (1)

Craig Swing
Craig Swing

Reputation: 8162

from

http://requirejs.org/docs/dojo.html

As of Dojo 1.8, Dojo has converted their modules to AMD modules. However, Dojo uses some loader plugins, and the loader plugin APIs are still in draft mode for AMD. So while some modules from Dojo can be used with RequireJS, it will be difficult to use all of Dojo. It is best to use Dojo's AMD loader until ticket 15616 has been resolved.

http://bugs.dojotoolkit.org/ticket/15616

Upvotes: 3

Related Questions