Changeset 8404

Show
Ignore:
Timestamp:
05/02/07 13:33:30 (19 months ago)
Author:
sjmiles
Message:

Updated code in various modules to reflect changes in Dojo r8402. Refs #2641.
*disconnect*: changed disconnect so that it only takes one argument: the handle returned from connect, simplifying client code that needs to manage connections.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dojox/trunk/widget/Toaster.js

    r8358 r8404  
    235235 
    236236                        if(!this._scrollConnected){ 
    237                                 this._scrollConnected = true; 
    238                                 this._scrollHandle = dojo.connect(window, "onscroll", this, this._placeClip); 
     237                                this._scrollConnected = dojo.connect(window, "onscroll", this, this._placeClip); 
    239238                        } 
    240239                }, 
     
    247246 
    248247                        if(this._scrollConnected){ 
     248                                dojo.disconnect(this._scrollConnected); 
    249249                                this._scrollConnected = false; 
    250                                 dojo.disconnect(window, "onscroll", this._scrollHandle); 
    251250                        } 
    252251