Skip to content

Instantly share code, notes, and snippets.

@stdavis
Last active December 16, 2015 01:39
Show Gist options
  • Save stdavis/5356872 to your computer and use it in GitHub Desktop.
Save stdavis/5356872 to your computer and use it in GitHub Desktop.

Revisions

  1. Scott Davis revised this gist Apr 10, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion EsriLoader.js
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    define([], function () {
    define(function () {
    // summary:
    // A dojo loader plugin for loading esri modules so that
    // they get ignored by the build system.
  2. Scott Davis created this gist Apr 10, 2013.
    18 changes: 18 additions & 0 deletions EsriLoader.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    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);
    });
    }
    };
    });