/*\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
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