Merge pull request #2268 from PawelStroinski/master

Add defined and specified to requirejs
This commit is contained in:
Bart van der Schoor
2014-06-04 19:38:40 +02:00
+12
View File
@@ -262,6 +262,18 @@ interface Require {
**/
toUrl(module: string): string;
/**
* Returns true if the module has already been loaded and defined.
* @param module Module to check
**/
defined(module: string): boolean;
/**
* Returns true if the module has already been requested or is in the process of loading and should be available at some point.
* @param module Module to check
**/
specified(module: string): boolean;
/**
* On Error override
* @param err