witten
/
luminotes
Archived
1
0
Fork 0

Changed Editor.drop() not to disconnectAll( window ), since there are other non-drag-related signals connected to window.

This commit is contained in:
Dan Helfman 2009-02-06 14:56:29 -08:00
parent c8a9b98599
commit 53b4aa571d
1 changed files with 4 additions and 3 deletions

View File

@ -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" );