JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.1
[ckeditor.git] / _source / core / resourcemanager.js
index ebf6be3..fd3bbda 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
 For licensing, see LICENSE.html or http://ckeditor.com/license\r
 */\r
 \r
@@ -86,7 +86,8 @@ CKEDITOR.resourceManager.prototype =
                if ( this.registered[ name ] )\r
                        throw '[CKEDITOR.resourceManager.add] The resource name "' + name + '" is already registered.';\r
 \r
-               this.registered[ name ] = definition || {};\r
+               CKEDITOR.fire( name + CKEDITOR.tools.capitalize( this.fileName ) + 'Ready',\r
+                               this.registered[ name ] = definition || {} );\r
        },\r
 \r
        /**\r