Changeset 9999

Show
Ignore:
Timestamp:
08/07/07 05:55:01 (16 months ago)
Author:
peller
Message:

Rename slideIn/slideOut to wipeIn/wipeOut. Fixes #3917

Files:
4 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/TitlePane.js

    r9893 r9999  
    4040                // setup open/close animations 
    4141                var hideNode = this.hideNode, wipeNode = this.wipeNode; 
    42                 this._slideIn = dojo.fx.slideIn({ 
     42                this._wipeIn = dojo.fx.wipeIn({ 
    4343                        node: this.wipeNode, 
    4444                        duration: this.duration, 
     
    4747                        } 
    4848                }); 
    49                 this._slideOut = dojo.fx.slideOut({ 
     49                this._wipeOut = dojo.fx.wipeOut({ 
    5050                        node: this.wipeNode, 
    5151                        duration: this.duration, 
     
    5959                // summary 
    6060                //              Typically called when an href is loaded.  Our job is to make the animation smooth 
    61                 if(this._slideOut.status() == "playing"){ 
     61                if(this._wipeOut.status() == "playing"){ 
    6262                        // we are currently *closing* the pane, so just let that continue 
    6363                        dijit.layout.ContentPane.prototype.setContent.apply(this, content); 
    6464                }else{ 
    65                         if(this._slideIn.status() == "playing"){ 
    66                                 this._slideIn.stop(); 
     65                        if(this._wipeIn.status() == "playing"){ 
     66                                this._wipeIn.stop(); 
    6767                        } 
    6868                         
     
    7373                        dijit.layout.ContentPane.prototype.setContent.apply(this, arguments); 
    7474                         
    75                         // call _slideIn.play() to animate from current height to new height 
    76                         this._slideIn.play(); 
     75                        // call _wipeIn.play() to animate from current height to new height 
     76                        this._wipeIn.play(); 
    7777                } 
    7878        }, 
     
    8080        toggle: function(){ 
    8181                // summary: switches between opened and closed state 
    82                 dojo.forEach([this._slideIn, this._slideOut], function(animation){ 
     82                dojo.forEach([this._wipeIn, this._wipeOut], function(animation){ 
    8383                        if(animation.status() == "playing"){ 
    8484                                animation.stop(); 
     
    8686                }); 
    8787 
    88                 this[this.open ? "_slideOut" : "_slideIn"].play(); 
    89                 this.open=!this.open; 
     88                this[this.open ? "_wipeOut" : "_wipeIn"].play(); 
     89                this.open =! this.open; 
    9090 
    9191                // load content (if this is the first time we are opening the TitlePane 
     
    111111                        this._onTitleClick(); 
    112112                } 
    113                 else if (e.keyCode == dojo.keys.DOWN_ARROW){ 
     113                else if(e.keyCode == dojo.keys.DOWN_ARROW){ 
    114114                        if(this.open){ 
    115115                                this.containerNode.focus(); 
  • dijit/trunk/Tree.js

    r9996 r9999  
    2424        lock: function(){ 
    2525                // summary: lock this node (and it's descendants) while a delete is taking place? 
    26                 this.locked=true; 
     26                this.locked = true; 
    2727        }, 
    2828        unlock: function(){ 
     
    3131                        throw new Error(this.declaredClass+" unlock: not locked"); 
    3232                } 
    33                 this.locked=false; 
     33                this.locked = false; 
    3434        }, 
    3535 
     
    9292                } 
    9393                 
    94                 if (this.isTree){ 
     94                if(this.isTree){ 
    9595                        // put first child in tab index if one exists. 
    9696                        var fc = this.getChildren()[0]; 
    97                         var tabnode = (fc) ? fc.labelNode : this.domNode;  
     97                        var tabnode = fc ? fc.labelNode : this.domNode;  
    9898                        tabnode.setAttribute("tabIndex", "0"); 
    9999                } 
     
    164164                var div = document.createElement('div'); 
    165165                div.style.display = 'none'; 
    166                 div.className="dijitTreeContainer";      
     166                div.className = "dijitTreeContainer";    
    167167                dijit.wai.setAttr(div, "waiRole", "role", "presentation"); 
    168168                this.containerNodeTemplate = div; 
     
    190190 
    191191        toString: function(){ 
    192                 return "["+this.declaredClass+" ID:"+this.id    +"]" 
     192                return "["+this.declaredClass+" ID:"+this.id+"]"; 
    193193        }, 
    194194 
     
    197197                do{ 
    198198                        ret=dijit.byNode(domElement); 
    199                 }while(!ret && (domElement=domElement.parentNode)); 
     199                }while(!ret && (domElement = domElement.parentNode)); 
    200200                return ret; 
    201201        }, 
     
    330330        postCreate: function(){ 
    331331                // set label, escaping special characters 
    332                 this.labelNode.innerHTML=""; 
     332                this.labelNode.innerHTML = ""; 
    333333                this.labelNode.appendChild(document.createTextNode(this.label)); 
    334334                 
     
    387387 
    388388                // create animations for showing/hiding the children 
    389                 this._slideIn = dojo.fx.slideIn({node: this.containerNode, duration: 250}); 
    390                 dojo.connect(this.slideIn, "onEnd", dojo.hitch(this, "_afterExpand")); 
    391                 this._slideOut = dojo.fx.slideOut({node: this.containerNode, duration: 250}); 
    392                 dojo.connect(this.slideOut, "onEnd", dojo.hitch(this, "_afterCollapse")); 
     389                this._wipeIn = dojo.fx.wipeIn({node: this.containerNode, duration: 250}); 
     390                dojo.connect(this.wipeIn, "onEnd", dojo.hitch(this, "_afterExpand")); 
     391                this._wipeOut = dojo.fx.wipeOut({node: this.containerNode, duration: 250}); 
     392                dojo.connect(this.wipeOut, "onEnd", dojo.hitch(this, "_afterCollapse")); 
    393393        }, 
    394394 
     
    398398 
    399399                // cancel in progress collapse operation 
    400                 if(this._slideOut.status() == "playing"){ 
    401                         this._slideOut.stop(); 
     400                if(this._wipeOut.status() == "playing"){ 
     401                        this._wipeOut.stop(); 
    402402                } 
    403403 
     
    409409 
    410410                // TODO: use animation that's constant speed of movement, not constant time regardless of height 
    411                 this._slideIn.play(); 
     411                this._wipeIn.play(); 
    412412        }, 
    413413 
     
    421421 
    422422                // cancel in progress expand operation 
    423                 if(this._slideIn.status() == "playing"){ 
    424                         this._slideIn.stop(); 
     423                if(this._wipeIn.status() == "playing"){ 
     424                        this._wipeIn.stop(); 
    425425                } 
    426426 
     
    429429                this._setExpando(); 
    430430 
    431                 this._slideOut.play(); 
     431                this._wipeOut.play(); 
    432432        }, 
    433433 
  • dojo/trunk/fx.js

    r9915 r9999  
    4545                //                      showDuration: 500, 
    4646                //                      // hideDuration will default to "200" 
    47                 //                      showFunc: dojo.slideIn,  
     47                //                      showFunc: dojo.wipeIn,  
    4848                //                      // hideFunc will default to "fadeOut" 
    4949                //              }); 
     
    5959 
    6060                dojo.mixin(_t, args); 
    61                 _t.node = args["node"]; 
     61                _t.node = args.node; 
    6262                _t._showArgs = dojo.mixin({}, args); 
    6363                _t._showArgs.node = _t.node; 
     
    102102); 
    103103 
    104 dojo.fx.slideIn = function(/*Object*/ args){ 
     104dojo.fx.wipeIn = function(/*Object*/ args){ 
    105105        // summary 
    106106        //              Returns an animation that will expand the 
     
    143143} 
    144144 
    145 dojo.fx.slideOut = function(/*Object*/ args){ 
     145dojo.fx.wipeOut = function(/*Object*/ args){ 
    146146        // summary 
    147147        //              Returns an animation that will shrink node defined in "args" 
    148148        //              from it's current height to 1px, and then hide it. 
    149         var node = args.node = dojo.byId(args.node); 
     149        var node = (args.node = dojo.byId(args.node)); 
    150150 
    151151        var anim = dojo.animateProperty(dojo.mixin({ 
  • dojox/trunk/fx/_base.js

    r9944 r9999  
    99dojox.fx.chain = dojo.fx.chain; 
    1010dojox.fx.combine = dojo.fx.combine; 
    11 dojox.fx.slideIn = dojo.fx.slideIn; 
    12 dojox.fx.slideOut = dojo.fx.slideOut; 
     11dojox.fx.wipeIn = dojo.fx.wipeIn; 
     12dojox.fx.wipeOut = dojo.fx.wipeOut; 
    1313dojox.fx.slideTo = dojo.fx.slideTo; 
    1414 
     
    3535        // 
    3636        // 
    37         var node = args.node = dojo.byId(args.node); 
     37        var node = (args.node = dojo.byId(args.node)); 
    3838        var compute = dojo.getComputedStyle; 
    3939 
     
    8181 
    8282        // FIXME:  
    83         // dojo.fx[args.method]([anim1,anim2]);          
    84         if(args.method == "combine"){ 
    85                 var anim = dojo.fx.combine([anim1,anim2]); 
    86         }else{ 
    87                 var anim = dojo.fx.chain([anim1,anim2]); 
    88         } 
     83        // dojo.fx[args.method]([anim1,anim2]); 
     84        var anim = dojo.fx[((args.method == "combine") ? "combine" : "chain")]([anim1,anim2]); 
    8985        dojo.connect(anim, "beforeBegin", anim, init); 
    9086        return anim; // dojo._Animation 
     
    107103        //              args.cssClass: String - class string (to be added onEnd) 
    108104        //               
    109         var node = args.node = dojo.byId(args.node);  
     105        var node = (args.node = dojo.byId(args.node));  
    110106 
    111107        var pushClass = (function(){ 
     
    148144        //      args.cssClass: String - class string (to be removed from node) 
    149145        //               
    150         var node = args.node = dojo.byId(args.node);  
     146        var node = (args.node = dojo.byId(args.node));  
    151147 
    152148        var pullClass = (function(){ 
     
    241237        //      false to calculate what removing the class would do 
    242238 
    243         var node = args.node = dojo.byId(args.node);  
     239        var node = (args.node = dojo.byId(args.node));  
    244240        var compute = dojo.getComputedStyle(node); 
    245241