/*\r
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
*/\r
\r
};\r
\r
/**\r
- * Removes and editor instance from the global {@link CKEDITOR} object. his function\r
- * is available for internal use mainly.\r
- * @param {CKEDITOR.editor} editor The editor instance to be added.\r
+ * Removes an editor instance from the global {@link CKEDITOR} object. This function\r
+ * is available for internal use only. External code must use {@link CKEDITOR.editor.prototype.destroy}\r
+ * to avoid memory leaks.\r
+ * @param {CKEDITOR.editor} editor The editor instance to be removed.\r
* @example\r
*/\r
CKEDITOR.remove = function( editor )\r
* editor = CKEDITOR.currentInstance;\r
* });\r
*/\r
+\r
+/**\r
+ * Fired when the last instance has been destroyed. This event is used to perform\r
+ * global memory clean up.\r
+ * @name CKEDITOR#reset\r
+ * @event\r
+ */\r