This file contains hidden or 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
define(function () { | |
// summary: | |
// A dojo loader plugin for loading esri modules so that | |
// they get ignored by the build system. | |
return { | |
load: function (id, require, callback) { | |
// id: String | |
// esri module id | |
// require: Function | |
// AMD require; usually a context-sensitive require bound to the module making the plugin request |
This file contains hidden or 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
COMMENTS_SECRET = 'any_old_string_you_like' |
This file contains hidden or 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
function given(dependencies) { | |
return { | |
define: function(id, module) { | |
if (!module) { | |
// Assume the first arg is the module | |
module = id; | |
id = undefined; | |
} | |
return define(id, dependencies, module); | |
} |