|
@@ -20,6 +20,12 @@
|
|
|
*/
|
|
*/
|
|
|
_getBasePath: getBasePath,
|
|
_getBasePath: getBasePath,
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * The list of dependencies of **named** AMD modules created with `CKEDITOR.define`. This is mainly used to
|
|
|
|
|
+ * trace the dependency tree of plugins.
|
|
|
|
|
+ */
|
|
|
|
|
+ _dependencies: {},
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* The full URL for the CKEditor installation directory.
|
|
* The full URL for the CKEditor installation directory.
|
|
|
*
|
|
*
|
|
@@ -40,7 +46,14 @@
|
|
|
* @method
|
|
* @method
|
|
|
* @member CKEDITOR
|
|
* @member CKEDITOR
|
|
|
*/
|
|
*/
|
|
|
- define: define,
|
|
|
|
|
|
|
+ define: function( name, deps ) {
|
|
|
|
|
+ // If this is a named module with dependencies, save this in the dependency list.
|
|
|
|
|
+ if ( Array.isArray( deps ) && name && !this._dependencies[ name ] ) {
|
|
|
|
|
+ this._dependencies[ name ] = deps;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ return define.apply( this, arguments );
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* Retrieves one or more AMD modules.
|
|
* Retrieves one or more AMD modules.
|