Changeset 9349

Show
Ignore:
Timestamp:
06/27/07 23:48:41 (19 months ago)
Author:
elazutkin
Message:

Added global and local classes, so programmers can change UI during the move. Added topics to indicated that the move has started and ended. Fixes #3371.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dojo/trunk/dnd/move.js

    r9345 r9349  
    2020                firstEvent 
    2121        ]; 
     22        // set globals to indicate that move has started 
     23        dojo.publish("dndMoveStart", [this.node]); 
     24        dojo.addClass(dojo.body(), "dojoMove");  
     25        dojo.addClass(this.node, "dojoMoveItem");  
    2226}; 
    2327 
     
    4347                // summary: stops the move, deletes all references, so the object can be garbage-collected 
    4448                dojo.forEach(this.events, dojo.disconnect); 
     49                // undo global settings 
     50                dojo.publish("dndMoveStop", [this.node]); 
     51                dojo.removeClass(dojo.body(), "dojoMove"); 
     52                dojo.removeClass(this.node, "dojoMoveItem"); 
     53                // destroy objects 
    4554                this.events = this.node = null; 
    4655        }