Created
February 23, 2012 09:31
-
-
Save jthomas/1891911 to your computer and use it in GitHub Desktop.
Loading AMD modules using Dojo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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