Changeset 11198
- Timestamp:
- 10/29/07 17:56:54 (10 months ago)
- Location:
- dojox/trunk/fx
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
dojox/trunk/fx/style.js
r11043 r11198 13 13 dojox.fx.addClass = function(/*dojox.fx._arg.StyleArgs*/ args){ 14 14 // summary: 15 // returns an animation that will animate16 // the proper ieds of a node to the properties15 // creates an animation that will animate 16 // the properties of a node to the properties 17 17 // defined in a standard CSS .class definition. 18 18 // (calculating the differences itself) 19 //20 // standard _Animation object rules apply.21 //22 // additonal mixins:23 //24 // args.cssClass: String - class string (to be added onEnd)25 //26 19 var node = (args.node = dojo.byId(args.node)); 27 20 … … 47 40 },args)); 48 41 dojo.connect(_anim,"onEnd",_anim,pushClass); 49 return _anim; 42 return _anim; // dojo._Animation 50 43 }; 51 44 -
dojox/trunk/fx/_arg.js
r10754 r11198 1 1 dojo.provide("dojox.fx._arg"); 2 2 3 dojox.fx._arg.StyleArgs = function(/* DOMNode*/ node, /*String*/ cssClass){3 dojox.fx._arg.StyleArgs = function(/*Object*/ args){ 4 4 // summary: 5 5 // The node and CSS class to use for style manipulations. 6 // node: 6 // node: DOMNode 7 7 // The node to manipulate 8 // cssClass: 8 // cssClass: String 9 9 // The class to use during the manipulation 10 this.node = node;11 this.cssClass = cssClass;10 this.node = args.node; 11 this.cssClass = args.cssClass; 12 12 } 13 13 14 dojox.fx._arg.ShadowResizeArgs = function(/* Int */x, /* Int */y){14 dojox.fx._arg.ShadowResizeArgs = function(/*Object*/ args){ 15 15 // summary: 16 16 // The odd way to document object parameters. 17 // x: 17 // x: Integer 18 18 // the width to set 19 // y: 19 // y: Integer 20 20 // the height to set 21 this.x = x;22 this.y = y;21 this.x = args.x; 22 this.y = args.y; 23 23 }