* load was calling request with ready and error being null.
* request was doing a strict check against undefined to prevent adding
jobs with no callbacks to the queue.
* Since these were null rather than undefined, the empty jobs got added
anyway. Now using undefined instead.
* Mark ready and error as optional in the request JS documentation.
Change-Id: I6428e733899f7c484f842f6fe142c8d4d49ee443
*
* @private
* @param {string|string[]} dependencies Module name or array of string module names
*
* @private
* @param {string|string[]} dependencies Module name or array of string module names
- * @param {Function} ready Callback to execute when all dependencies are ready
- * @param {Function} error Callback to execute when any dependency fails
+ * @param {Function} [ready] Callback to execute when all dependencies are ready
+ * @param {Function} [error] Callback to execute when any dependency fails
* @param {boolean} [async] If true, load modules asynchronously even if
* document ready has not yet occurred.
*/
* @param {boolean} [async] If true, load modules asynchronously even if
* document ready has not yet occurred.
*/
return;
}
// Since some modules are not yet ready, queue up a request.
return;
}
// Since some modules are not yet ready, queue up a request.
- request( filtered, null, null, async );
+ request( filtered, undefined, undefined, async );