Skip to content

Instantly share code, notes, and snippets.

@Kalyse
Forked from stdavis/ExampleUsage.js
Created August 19, 2013 13:16
Show Gist options
  • Save Kalyse/6269010 to your computer and use it in GitHub Desktop.
Save Kalyse/6269010 to your computer and use it in GitHub Desktop.
require(['IgnoreModule!module/to/Ingore'], function (Ignore) {...});
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
// callback: Function
// Callback function which will be called, when the loading finished.
require([id], function (mod) {
callback(mod);
});
}
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment