Changeset 460
- Timestamp:
- 10/21/06 17:54:13 (2 years ago)
- Files:
-
- 1 modified
-
plugins/interface/idrag.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugins/interface/idrag.js
r458 r460 21 21 { 22 22 if (this.isDraggable) { 23 //--[OLD] 24 //this.dragElem = null; 25 //jQuery(this).unbind('mousedown', jQuery.iDrag.dragstart); 26 //--[/OLD] 27 28 // - First, unbind the mousedown code from the "dragElem" (handle or object itself). 29 // - This is NOT dragstart, but draginit 30 this.dragElem.unbind('mousedown', jQuery.iDrag.draginit); 31 32 // Next, free the dragelement 33 this.dragElem = null; 34 35 // And unset the "isDraggable" flag, so you can restart the drag later on. 23 this.dragCfg.dhe.unbind('mousedown', jQuery.iDrag.draginit); 24 this.dragCfg = null; 36 25 this.isDraggable = false; 37 26 } … … 480 469 this.ondragstart = function(){return false;}; 481 470 } 471 var el = this; 482 472 var dhe = o.handle ? jQuery(this).find(o.handle) : jQuery(this); 483 473 this.dragCfg = { 474 dhe: dhe, 484 475 revert : o.revert ? true : false, 485 476 ghosting : o.ghosting ? true : false, … … 523 514 524 515 this.isDraggable = true; 525 dhe.get(0).dragElem = this; 526 //--[OLD] 527 //dhe.bind('mousedown', jQuery.iDrag.draginit); 528 //--[/OLD] 529 530 // This line makes sure the DraggableDestroy knows the handler (or object) to undind the event from. 531 this.dragElem = dhe; 532 this.dragElem.bind('mousedown', jQuery.iDrag.draginit); 516 dhe.each( 517 function(){ 518 this.dragElem = el; 519 } 520 ); 521 dhe.bind('mousedown', jQuery.iDrag.draginit); 533 522 } 534 523 )
