code: function define(moduleName, deps, payload) {
    if (typeof moduleName != "string") {
      throw new TypeError('Expected string, got: ' + moduleName);
    }
  
    if (arguments.length == 2) {
      payload = deps;
    }
  
    if (moduleName in define.modules) {
      throw new Error("Module already defined: " + moduleName);
    }
    define.modules[moduleName] = payload;
  }
docs: /* -*- Mode: js; js-indent-level: 2; -*- /*
  Copyright 2011 Mozilla Foundation and contributors
  Licensed under the New BSD license. See LICENSE or:
  http://opensource.org/licenses/BSD-3-Clause
   
  Define a module along with a payload.
  @param {string} moduleName Name for the payload
  @param {ignored} deps Ignored. For compatibility with CommonJS AMD Spec
  @param {function} payload Function with (require, exports, module) params