JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.2.1
[ckeditor.git] / _source / plugins / resize / plugin.js
index 6ef729f..780f319 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
@@ -53,7 +53,9 @@ CKEDITOR.plugins.add( 'resize',
                                                editor.document.on( 'mousemove', dragHandler );\r
                                                editor.document.on( 'mouseup', dragEndHandler );\r
                                        }\r
-                               } );\r
+                               });\r
+\r
+                       editor.on( 'destroy', function() { CKEDITOR.tools.removeFunction( mouseDownFn ); } );\r
 \r
                        editor.on( 'themeSpace', function( event )\r
                                {\r