Skip to content

Instantly share code, notes, and snippets.

@jthomas
Created February 23, 2012 09:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jthomas/1891911 to your computer and use it in GitHub Desktop.
Save jthomas/1891911 to your computer and use it in GitHub Desktop.
Loading AMD modules using Dojo
// This doesn't work....
define("a/b/c", function () {
// return something....
});
var mod = require("a/b/c");
// This does work...
define("a/b/c", function () {
// return something....
});
require(["a/b/c"], function () {
var mod = require("a/b/c");
});
// or
define("a/b/c", function () {
// return something....
});
require(["a/b/c"]);
var mod = require("a/b/c");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment