From 53b4aa571dc9750bf0dd4910ca12027b19023961 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Fri, 6 Feb 2009 14:56:29 -0800 Subject: [PATCH] Changed Editor.drop() not to disconnectAll( window ), since there are other non-drag-related signals connected to window. --- static/js/Editor.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/static/js/Editor.js b/static/js/Editor.js index 76f624f..9caf80e 100644 --- a/static/js/Editor.js +++ b/static/js/Editor.js @@ -723,8 +723,8 @@ Editor.prototype.start_drag = function ( event ) { signal( this, "grabber_pressed", event ); var self = this; - connect( window, "onmousemove", function ( event ) { self.drag( event ) } ); - connect( window, "onmouseup", function ( event ) { self.drop( event ) } ); + this.drag_signal = connect( window, "onmousemove", function ( event ) { self.drag( event ) } ); + this.drop_signal = connect( window, "onmouseup", function ( event ) { self.drop( event ) } ); } Editor.prototype.drag = function( event ) { @@ -752,7 +752,8 @@ Editor.prototype.drag = function( event ) { } Editor.prototype.drop = function( event ) { - disconnectAll( window ); + disconnect( this.drag_signal ); + disconnect( this.drop_signal ); removeElementClass( this.div, "note_div_dragging" ); removeElementClass( this.holder, "note_holder_dragging" );