r49432 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49431‎ | r49432 | r49433 >
Date:23:04, 12 April 2009
Author:ashley
Status:deferred
Tags:
Comment:
YUI: change spaces to tabs in yui.js
Modified paths:
  • /trunk/extensions/SocialProfile/YUI/yui.js (modified) (history)

Diff [purge]

Index: trunk/extensions/SocialProfile/YUI/yui.js
@@ -37,11 +37,9 @@
3838 }this.constrainY=true;},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var D=(this.maintainOffset)?this.lastPageX-this.initPageX:0;var C=(this.maintainOffset)?this.lastPageY-this.initPageY:0;this.setInitPosition(D,C);}else{this.setInitPosition();}if(this.constrainX){this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize);}if(this.constrainY){this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize);}},getTick:function(I,F){if(!F){return I;}else{if(F[0]>=I){return F[0];}else{for(var D=0,C=F.length;D<C;++D){var E=D+1;if(F[E]&&F[E]>=I){var H=I-F[D];var G=F[E]-I;return(G>H)?F[D]:F[E];}}return F[F.length-1];}}},toString:function(){return("DragDrop "+this.id);}};YAHOO.augment(YAHOO.util.DragDrop,YAHOO.util.EventProvider);})();YAHOO.util.DD=function(C,A,B){if(C){this.init(C,A,B);}};YAHOO.extend(YAHOO.util.DD,YAHOO.util.DragDrop,{scroll:true,autoOffset:function(C,B){var A=C-this.startPageX;var D=B-this.startPageY;this.setDelta(A,D);},setDelta:function(B,A){this.deltaX=B;this.deltaY=A;},setDragElPos:function(C,B){var A=this.getDragEl();this.alignElWithMouse(A,C,B);},alignElWithMouse:function(C,G,F){var E=this.getTargetCoord(G,F);if(!this.deltaSetXY){var H=[E.x,E.y];YAHOO.util.Dom.setXY(C,H);var D=parseInt(YAHOO.util.Dom.getStyle(C,"left"),10);var B=parseInt(YAHOO.util.Dom.getStyle(C,"top"),10);this.deltaSetXY=[D-E.x,B-E.y];}else{YAHOO.util.Dom.setStyle(C,"left",(E.x+this.deltaSetXY[0])+"px");YAHOO.util.Dom.setStyle(C,"top",(E.y+this.deltaSetXY[1])+"px");}this.cachePosition(E.x,E.y);var A=this;setTimeout(function(){A.autoScroll.call(A,E.x,E.y,C.offsetHeight,C.offsetWidth);},0);},cachePosition:function(B,A){if(B){this.lastPageX=B;this.lastPageY=A;}else{var C=YAHOO.util.Dom.getXY(this.getEl());this.lastPageX=C[0];this.lastPageY=C[1];}},autoScroll:function(J,I,E,K){if(this.scroll){var L=this.DDM.getClientHeight();var B=this.DDM.getClientWidth();var N=this.DDM.getScrollTop();var D=this.DDM.getScrollLeft();var H=E+I;var M=K+J;var G=(L+N-I-this.deltaY);var F=(B+D-J-this.deltaX);var C=40;var A=(document.all)?80:30;if(H>L&&G<C){window.scrollTo(D,N+A);}if(I<N&&N>0&&I-N<C){window.scrollTo(D,N-A);}if(M>B&&F<C){window.scrollTo(D+A,N);}if(J<D&&D>0&&J-D<C){window.scrollTo(D-A,N);}}},applyConfig:function(){YAHOO.util.DD.superclass.applyConfig.call(this);this.scroll=(this.config.scroll!==false);},b4MouseDown:function(A){this.setStartPosition();this.autoOffset(YAHOO.util.Event.getPageX(A),YAHOO.util.Event.getPageY(A));},b4Drag:function(A){this.setDragElPos(YAHOO.util.Event.getPageX(A),YAHOO.util.Event.getPageY(A));},toString:function(){return("DD "+this.id);}});YAHOO.util.DDProxy=function(C,A,B){if(C){this.init(C,A,B);this.initFrame();}};YAHOO.util.DDProxy.dragElId="ygddfdiv";YAHOO.extend(YAHOO.util.DDProxy,YAHOO.util.DD,{resizeFrame:true,centerFrame:false,createFrame:function(){var B=this,A=document.body;if(!A||!A.firstChild){setTimeout(function(){B.createFrame();},50);return;}var F=this.getDragEl(),E=YAHOO.util.Dom;if(!F){F=document.createElement("div");F.id=this.dragElId;var D=F.style;D.position="absolute";D.visibility="hidden";D.cursor="move";D.border="2px solid #aaa";D.zIndex=999;D.height="25px";D.width="25px";var C=document.createElement("div");E.setStyle(C,"height","100%");E.setStyle(C,"width","100%");E.setStyle(C,"background-color","#ccc");E.setStyle(C,"opacity","0");F.appendChild(C);A.insertBefore(F,A.firstChild);}},initFrame:function(){this.createFrame();},applyConfig:function(){YAHOO.util.DDProxy.superclass.applyConfig.call(this);this.resizeFrame=(this.config.resizeFrame!==false);this.centerFrame=(this.config.centerFrame);this.setDragElId(this.config.dragElId||YAHOO.util.DDProxy.dragElId);},showFrame:function(E,D){var C=this.getEl();var A=this.getDragEl();var B=A.style;this._resizeProxy();if(this.centerFrame){this.setDelta(Math.round(parseInt(B.width,10)/2),Math.round(parseInt(B.height,10)/2));}this.setDragElPos(E,D);YAHOO.util.Dom.setStyle(A,"visibility","visible");},_resizeProxy:function(){if(this.resizeFrame){var H=YAHOO.util.Dom;var B=this.getEl();var C=this.getDragEl();var G=parseInt(H.getStyle(C,"borderTopWidth"),10);var I=parseInt(H.getStyle(C,"borderRightWidth"),10);var F=parseInt(H.getStyle(C,"borderBottomWidth"),10);var D=parseInt(H.getStyle(C,"borderLeftWidth"),10);if(isNaN(G)){G=0;}if(isNaN(I)){I=0;}if(isNaN(F)){F=0;}if(isNaN(D)){D=0;}var E=Math.max(0,B.offsetWidth-I-D);var A=Math.max(0,B.offsetHeight-G-F);H.setStyle(C,"width",E+"px");H.setStyle(C,"height",A+"px");}},b4MouseDown:function(B){this.setStartPosition();var A=YAHOO.util.Event.getPageX(B);var C=YAHOO.util.Event.getPageY(B);this.autoOffset(A,C);},b4StartDrag:function(A,B){this.showFrame(A,B);},b4EndDrag:function(A){YAHOO.util.Dom.setStyle(this.getDragEl(),"visibility","hidden");},endDrag:function(D){var C=YAHOO.util.Dom;var B=this.getEl();var A=this.getDragEl();C.setStyle(A,"visibility","");C.setStyle(B,"visibility","hidden");YAHOO.util.DDM.moveToEl(B,A);C.setStyle(A,"visibility","hidden");C.setStyle(B,"visibility","");},toString:function(){return("DDProxy "+this.id);}});YAHOO.util.DDTarget=function(C,A,B){if(C){this.initTarget(C,A,B);}};YAHOO.extend(YAHOO.util.DDTarget,YAHOO.util.DragDrop,{toString:function(){return("DDTarget "+this.id);}});YAHOO.register("dragdrop",YAHOO.util.DragDropMgr,{version:"2.7.0",build:"1796"});YAHOO.util.Attribute=function(B,A){if(A){this.owner=A;this.configure(B,true);}};YAHOO.util.Attribute.prototype={name:undefined,value:null,owner:null,readOnly:false,writeOnce:false,_initialConfig:null,_written:false,method:null,setter:null,getter:null,validator:null,getValue:function(){var A=this.value;if(this.getter){A=this.getter.call(this.owner,this.name);}return A;},setValue:function(F,B){var E,A=this.owner,C=this.name;var D={type:C,prevValue:this.getValue(),newValue:F};if(this.readOnly||(this.writeOnce&&this._written)){return false;}if(this.validator&&!this.validator.call(A,F)){return false;}if(!B){E=A.fireBeforeChangeEvent(D);if(E===false){return false;}}if(this.setter){F=this.setter.call(A,F,this.name);if(F===undefined){}}if(this.method){this.method.call(A,F,this.name);}this.value=F;this._written=true;D.type=C;if(!B){this.owner.fireChangeEvent(D);}return true;},configure:function(B,C){B=B||{};if(C){this._written=false;}this._initialConfig=this._initialConfig||{};for(var A in B){if(B.hasOwnProperty(A)){this[A]=B[A];if(C){this._initialConfig[A]=B[A];}}}},resetValue:function(){return this.setValue(this._initialConfig.value);},resetConfig:function(){this.configure(this._initialConfig,true);},refresh:function(A){this.setValue(this.value,A);}};(function(){var A=YAHOO.util.Lang;YAHOO.util.AttributeProvider=function(){};YAHOO.util.AttributeProvider.prototype={_configs:null,get:function(C){this._configs=this._configs||{};var B=this._configs[C];if(!B||!this._configs.hasOwnProperty(C)){return null;}return B.getValue();},set:function(D,E,B){this._configs=this._configs||{};var C=this._configs[D];if(!C){return false;}return C.setValue(E,B);},getAttributeKeys:function(){this._configs=this._configs;var C=[],B;for(B in this._configs){if(A.hasOwnProperty(this._configs,B)&&!A.isUndefined(this._configs[B])){C[C.length]=B;}}return C;},setAttributes:function(D,B){for(var C in D){if(A.hasOwnProperty(D,C)){this.set(C,D[C],B);}}},resetValue:function(C,B){this._configs=this._configs||{};if(this._configs[C]){this.set(C,this._configs[C]._initialConfig.value,B);return true;}return false;},refresh:function(E,C){this._configs=this._configs||{};var F=this._configs;E=((A.isString(E))?[E]:E)||this.getAttributeKeys();for(var D=0,B=E.length;D<B;++D){if(F.hasOwnProperty(E[D])){this._configs[E[D]].refresh(C);}}},register:function(B,C){this.setAttributeConfig(B,C);},getAttributeConfig:function(C){this._configs=this._configs||{};var B=this._configs[C]||{};var D={};for(C in B){if(A.hasOwnProperty(B,C)){D[C]=B[C];}}return D;},setAttributeConfig:function(B,C,D){this._configs=this._configs||{};C=C||{};if(!this._configs[B]){C.name=B;this._configs[B]=this.createAttribute(C);}else{this._configs[B].configure(C,D);}},configureAttribute:function(B,C,D){this.setAttributeConfig(B,C,D);},resetAttributeConfig:function(B){this._configs=this._configs||{};this._configs[B].resetConfig();},subscribe:function(B,C){this._events=this._events||{};if(!(B in this._events)){this._events[B]=this.createEvent(B);}YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments);},on:function(){this.subscribe.apply(this,arguments);},addListener:function(){this.subscribe.apply(this,arguments);},fireBeforeChangeEvent:function(C){var B="before";B+=C.type.charAt(0).toUpperCase()+C.type.substr(1)+"Change";C.type=B;return this.fireEvent(C.type,C);},fireChangeEvent:function(B){B.type+="Change";return this.fireEvent(B.type,B);},createAttribute:function(B){return new YAHOO.util.Attribute(B,this);}};YAHOO.augment(YAHOO.util.AttributeProvider,YAHOO.util.EventProvider);})();(function(){var B=YAHOO.util.Dom,C=YAHOO.util.AttributeProvider;var A=function(D,E){this.init.apply(this,arguments);};A.DOM_EVENTS={"click":true,"dblclick":true,"keydown":true,"keypress":true,"keyup":true,"mousedown":true,"mousemove":true,"mouseout":true,"mouseover":true,"mouseup":true,"focus":true,"blur":true,"submit":true,"change":true};A.prototype={DOM_EVENTS:null,DEFAULT_HTML_SETTER:function(F,D){var E=this.get("element");if(E){E[D]=F;}},DEFAULT_HTML_GETTER:function(D){var E=this.get("element"),F;if(E){F=E[D];}return F;},appendChild:function(D){D=D.get?D.get("element"):D;return this.get("element").appendChild(D);},getElementsByTagName:function(D){return this.get("element").getElementsByTagName(D);},hasChildNodes:function(){return this.get("element").hasChildNodes();},insertBefore:function(D,E){D=D.get?D.get("element"):D;E=(E&&E.get)?E.get("element"):E;return this.get("element").insertBefore(D,E);},removeChild:function(D){D=D.get?D.get("element"):D;return this.get("element").removeChild(D);},replaceChild:function(D,E){D=D.get?D.get("element"):D;E=E.get?E.get("element"):E;return this.get("element").replaceChild(D,E);},initAttributes:function(D){},addListener:function(H,G,I,F){var E=this.get("element")||this.get("id");F=F||this;var D=this;if(!this._events[H]){if(E&&this.DOM_EVENTS[H]){YAHOO.util.Event.addListener(E,H,function(J){if(J.srcElement&&!J.target){J.target=J.srcElement;}D.fireEvent(H,J);},I,F);}this.createEvent(H,this);}return YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments);},on:function(){return this.addListener.apply(this,arguments);},subscribe:function(){return this.addListener.apply(this,arguments);},removeListener:function(E,D){return this.unsubscribe.apply(this,arguments);},addClass:function(D){B.addClass(this.get("element"),D);},getElementsByClassName:function(E,D){return B.getElementsByClassName(E,D,this.get("element"));},hasClass:function(D){return B.hasClass(this.get("element"),D);},removeClass:function(D){return B.removeClass(this.get("element"),D);},replaceClass:function(E,D){return B.replaceClass(this.get("element"),E,D);},setStyle:function(E,D){return B.setStyle(this.get("element"),E,D);},getStyle:function(D){return B.getStyle(this.get("element"),D);},fireQueue:function(){var E=this._queue;for(var F=0,D=E.length;F<D;++F){this[E[F][0]].apply(this,E[F][1]);}},appendTo:function(E,F){E=(E.get)?E.get("element"):B.get(E);this.fireEvent("beforeAppendTo",{type:"beforeAppendTo",target:E});
3939 F=(F&&F.get)?F.get("element"):B.get(F);var D=this.get("element");if(!D){return false;}if(!E){return false;}if(D.parent!=E){if(F){E.insertBefore(D,F);}else{E.appendChild(D);}}this.fireEvent("appendTo",{type:"appendTo",target:E});return D;},get:function(D){var F=this._configs||{},E=F.element;if(E&&!F[D]&&!YAHOO.lang.isUndefined(E.value[D])){this._setHTMLAttrConfig(D);}return C.prototype.get.call(this,D);},setAttributes:function(J,G){var E={},H=this._configOrder;for(var I=0,D=H.length;I<D;++I){if(J[H[I]]!==undefined){E[H[I]]=true;this.set(H[I],J[H[I]],G);}}for(var F in J){if(J.hasOwnProperty(F)&&!E[F]){this.set(F,J[F],G);}}},set:function(E,G,D){var F=this.get("element");if(!F){this._queue[this._queue.length]=["set",arguments];if(this._configs[E]){this._configs[E].value=G;}return;}if(!this._configs[E]&&!YAHOO.lang.isUndefined(F[E])){this._setHTMLAttrConfig(E);}return C.prototype.set.apply(this,arguments);},setAttributeConfig:function(D,E,F){this._configOrder.push(D);C.prototype.setAttributeConfig.apply(this,arguments);},createEvent:function(E,D){this._events[E]=true;return C.prototype.createEvent.apply(this,arguments);},init:function(E,D){this._initElement(E,D);},destroy:function(){var D=this.get("element");YAHOO.util.Event.purgeElement(D,true);this.unsubscribeAll();if(D&&D.parentNode){D.parentNode.removeChild(D);}this._queue=[];this._events={};this._configs={};this._configOrder=[];},_initElement:function(F,E){this._queue=this._queue||[];this._events=this._events||{};this._configs=this._configs||{};this._configOrder=[];E=E||{};E.element=E.element||F||null;var H=false;var D=A.DOM_EVENTS;this.DOM_EVENTS=this.DOM_EVENTS||{};for(var G in D){if(D.hasOwnProperty(G)){this.DOM_EVENTS[G]=D[G];}}if(typeof E.element==="string"){this._setHTMLAttrConfig("id",{value:E.element});}if(B.get(E.element)){H=true;this._initHTMLElement(E);this._initContent(E);}YAHOO.util.Event.onAvailable(E.element,function(){if(!H){this._initHTMLElement(E);}this.fireEvent("available",{type:"available",target:B.get(E.element)});},this,true);YAHOO.util.Event.onContentReady(E.element,function(){if(!H){this._initContent(E);}this.fireEvent("contentReady",{type:"contentReady",target:B.get(E.element)});},this,true);},_initHTMLElement:function(D){this.setAttributeConfig("element",{value:B.get(D.element),readOnly:true});},_initContent:function(D){this.initAttributes(D);this.setAttributes(D,true);this.fireQueue();},_setHTMLAttrConfig:function(D,F){var E=this.get("element");F=F||{};F.name=D;F.setter=F.setter||this.DEFAULT_HTML_SETTER;F.getter=F.getter||this.DEFAULT_HTML_GETTER;F.value=F.value||E[D];this._configs[D]=new YAHOO.util.Attribute(F,this);}};YAHOO.augment(A,C);YAHOO.util.Element=A;})();YAHOO.register("element",YAHOO.util.Element,{version:"2.7.0",build:"1796"});YAHOO.register("utilities", YAHOO, {version: "2.7.0", build: "1796"});
4040
41 -//start prototype / scriptac helper
42 -
 41+// Start prototype / scriptac helper
4342 var $ = YAHOO.util.Dom.get;
4443
45 -
4644 function $El(name) {
4745 return new YAHOO.util.Element(name);
4846 }
@@ -51,54 +49,54 @@
5250 var $$ = YAHOO.util.Dom.getElementsByClassName;
5351
5452 var Class = {
55 - create: function() {
56 - return function() {
57 - this.initialize.apply(this, arguments);
58 - }
59 - }
 53+ create: function() {
 54+ return function() {
 55+ this.initialize.apply(this, arguments);
 56+ }
 57+ }
6058 }
6159 var $A = Array.from = function(iterable) {
62 - if (!iterable) return [];
63 - if (iterable.toArray) {
64 - return iterable.toArray();
65 - } else {
66 - var results = [];
67 - for (var i = 0, length = iterable.length; i < length; i++)
68 - results.push(iterable[i]);
69 - return results;
70 - }
 60+ if (!iterable) return [];
 61+ if (iterable.toArray) {
 62+ return iterable.toArray();
 63+ } else {
 64+ var results = [];
 65+ for (var i = 0, length = iterable.length; i < length; i++)
 66+ results.push(iterable[i]);
 67+ return results;
 68+ }
7169 }
7270 Function.prototype.bind = function() {
73 - var __method = this, args = $A(arguments), object = args.shift();
74 - return function() {
75 - return __method.apply(object, args.concat($A(arguments)));
76 - }
 71+ var __method = this, args = $A(arguments), object = args.shift();
 72+ return function() {
 73+ return __method.apply(object, args.concat($A(arguments)));
 74+ }
7775 }
7876
7977 YAHOO.util.Dom.getDimensions = function(element){
80 - element = YAHOO.util.Dom.get(element);
81 - var display = YAHOO.util.Dom.getStyle( element, 'display');
 78+ element = YAHOO.util.Dom.get(element);
 79+ var display = YAHOO.util.Dom.getStyle( element, 'display');
8280
83 - if (display != 'none' && display != null) // Safari bug
84 - return {width: element.offsetWidth, height: element.offsetHeight};
 81+ if (display != 'none' && display != null) // Safari bug
 82+ return {width: element.offsetWidth, height: element.offsetHeight};
8583
86 - // All *Width and *Height properties give 0 on elements with display none,
87 - // so enable the element temporarily
88 - var els = element.style;
89 - var originalVisibility = els.visibility;
90 - var originalPosition = els.position;
91 - var originalDisplay = els.display;
92 - els.visibility = 'hidden';
93 - els.position = 'absolute';
94 - els.display = 'block';
 84+ // All *Width and *Height properties give 0 on elements with display none,
 85+ // so enable the element temporarily
 86+ var els = element.style;
 87+ var originalVisibility = els.visibility;
 88+ var originalPosition = els.position;
 89+ var originalDisplay = els.display;
 90+ els.visibility = 'hidden';
 91+ els.position = 'absolute';
 92+ els.display = 'block';
9593
96 - var originalWidth = element.clientWidth;
97 - var originalHeight = element.clientHeight;
98 - els.display = originalDisplay;
99 - els.position = originalPosition;
100 - els.visibility = originalVisibility;
 94+ var originalWidth = element.clientWidth;
 95+ var originalHeight = element.clientHeight;
 96+ els.display = originalDisplay;
 97+ els.position = originalPosition;
 98+ els.visibility = originalVisibility;
10199
102 - return {width: originalWidth, height: originalHeight};
 100+ return {width: originalWidth, height: originalHeight};
103101 }
104102
105103 function Element_Show() {
@@ -116,157 +114,154 @@
117115 YAHOO.util.Element.prototype.show = Element_Show;
118116
119117 YAHOO.util.Element.remove = function(el) {
120 - element = $(el);
121 - element.parentNode.removeChild(element);
 118+ element = $(el);
 119+ element.parentNode.removeChild(element);
122120 }
123121
124122 /*
125123 * scriptaculous functionality
126124 */
127125 YAHOO.widget.Effects = function() {
128 - return {
129 - version: '0.8'
130 - }
 126+ return {
 127+ version: '0.8'
 128+ }
131129 }();
132130
133131 YAHOO.widget.Effects.Hide = function(inElm) {
134 - this.element = YAHOO.util.Dom.get(inElm);
 132+ this.element = YAHOO.util.Dom.get(inElm);
135133
136 - YAHOO.util.Dom.setStyle(this.element, 'display', 'none');
137 - YAHOO.util.Dom.setStyle(this.element, 'visibility', 'hidden');
 134+ YAHOO.util.Dom.setStyle(this.element, 'display', 'none');
 135+ YAHOO.util.Dom.setStyle(this.element, 'visibility', 'hidden');
138136 }
139137
140138 YAHOO.widget.Effects.Show = function(inElm) {
141 - this.element = YAHOO.util.Dom.get(inElm);
 139+ this.element = YAHOO.util.Dom.get(inElm);
142140
143 - YAHOO.util.Dom.setStyle(this.element, 'display', 'block');
144 - YAHOO.util.Dom.setStyle(this.element, 'visibility', 'visible');
 141+ YAHOO.util.Dom.setStyle(this.element, 'display', 'block');
 142+ YAHOO.util.Dom.setStyle(this.element, 'visibility', 'visible');
145143 }
146144
147145 YAHOO.widget.Effects.Fade = function(inElm, opts) {
148 - this.element = YAHOO.util.Dom.get(inElm);
 146+ this.element = YAHOO.util.Dom.get(inElm);
149147
150 - var attributes = {
151 - opacity: { from: 1, to: 0 }
152 - };
153 - /**
154 - * Custom Event fired after the effect completes
155 - * @type Object
156 - */
157 - this.onEffectComplete = new YAHOO.util.CustomEvent('oneffectcomplete', this);
 148+ var attributes = {
 149+ opacity: { from: 1, to: 0 }
 150+ };
 151+ /**
 152+ * Custom Event fired after the effect completes
 153+ * @type Object
 154+ */
 155+ this.onEffectComplete = new YAHOO.util.CustomEvent('oneffectcomplete', this);
158156
159 - var ease = ((opts && opts.ease) ? opts.ease : YAHOO.util.Easing.easeOut);
160 - var secs = ((opts && opts.seconds) ? opts.seconds : 1);
161 - var delay = ((opts && opts.delay) ? opts.delay : false);
 157+ var ease = ((opts && opts.ease) ? opts.ease : YAHOO.util.Easing.easeOut);
 158+ var secs = ((opts && opts.seconds) ? opts.seconds : 1);
 159+ var delay = ((opts && opts.delay) ? opts.delay : false);
162160
163 - /**
164 - * YUI Animation Object
165 - * @type Object
166 - */
167 - this.effect = new YAHOO.util.Anim(this.element, attributes, secs, ease);
168 - this.effect.onComplete.subscribe(function() {
169 - YAHOO.widget.Effects.Hide(this.element);
170 - this.onEffectComplete.fire();
171 - }, this, true);
172 - if (!delay) {
173 - this.effect.animate();
174 - }
 161+ /**
 162+ * YUI Animation Object
 163+ * @type Object
 164+ */
 165+ this.effect = new YAHOO.util.Anim(this.element, attributes, secs, ease);
 166+ this.effect.onComplete.subscribe(function() {
 167+ YAHOO.widget.Effects.Hide(this.element);
 168+ this.onEffectComplete.fire();
 169+ }, this, true);
 170+ if (!delay) {
 171+ this.effect.animate();
 172+ }
175173 }
176174
177175 YAHOO.widget.Effects.Fade.prototype.animate = function() {
178 - this.effect.animate();
 176+ this.effect.animate();
179177 }
180178
181179 YAHOO.widget.Effects.Appear = function(inElm, opts) {
182 - this.element = YAHOO.util.Dom.get(inElm);
 180+ this.element = YAHOO.util.Dom.get(inElm);
183181
184 - YAHOO.util.Dom.setStyle(this.element, 'opacity', '0');
185 - YAHOO.widget.Effects.Show(this.element);
186 - var attributes = {
187 - opacity: { from: 0, to: 1 }
188 - };
189 - /**
190 - * Custom Event fired after the effect completes
191 - * @type Object
192 - */
193 - this.onEffectComplete = new YAHOO.util.CustomEvent('oneffectcomplete', this);
 182+ YAHOO.util.Dom.setStyle(this.element, 'opacity', '0');
 183+ YAHOO.widget.Effects.Show(this.element);
 184+ var attributes = {
 185+ opacity: { from: 0, to: 1 }
 186+ };
 187+ /**
 188+ * Custom Event fired after the effect completes
 189+ * @type Object
 190+ */
 191+ this.onEffectComplete = new YAHOO.util.CustomEvent('oneffectcomplete', this);
194192
195 - var ease = ((opts && opts.ease) ? opts.ease : YAHOO.util.Easing.easeOut);
196 - var secs = ((opts && opts.seconds) ? opts.seconds : 3);
197 - var delay = ((opts && opts.delay) ? opts.delay : false);
 193+ var ease = ((opts && opts.ease) ? opts.ease : YAHOO.util.Easing.easeOut);
 194+ var secs = ((opts && opts.seconds) ? opts.seconds : 3);
 195+ var delay = ((opts && opts.delay) ? opts.delay : false);
198196
199 - /**
200 - * YUI Animation Object
201 - * @type Object
202 - */
203 - this.effect = new YAHOO.util.Anim(this.element, attributes, secs, ease);
204 - this.effect.onComplete.subscribe(function() {
205 - this.onEffectComplete.fire();
206 - }, this, true);
207 - if (!delay) {
208 - this.effect.animate();
209 - }
 197+ /**
 198+ * YUI Animation Object
 199+ * @type Object
 200+ */
 201+ this.effect = new YAHOO.util.Anim(this.element, attributes, secs, ease);
 202+ this.effect.onComplete.subscribe(function() {
 203+ this.onEffectComplete.fire();
 204+ }, this, true);
 205+ if (!delay) {
 206+ this.effect.animate();
 207+ }
210208 }
211209
212210 YAHOO.widget.Effects.Appear.prototype.animate = function() {
213 - this.effect.animate();
 211+ this.effect.animate();
214212 }
215213
216 -
217214 YAHOO.widget.Effects.BlindUp = function(inElm, opts) {
218 - var ease = ((opts && opts.ease) ? opts.ease : YAHOO.util.Easing.easeOut);
219 - var secs = ((opts && opts.seconds) ? opts.seconds : 1);
220 - var delay = ((opts && opts.delay) ? opts.delay : false);
221 - var ghost = ((opts && opts.ghost) ? opts.ghost : false);
 215+ var ease = ((opts && opts.ease) ? opts.ease : YAHOO.util.Easing.easeOut);
 216+ var secs = ((opts && opts.seconds) ? opts.seconds : 1);
 217+ var delay = ((opts && opts.delay) ? opts.delay : false);
 218+ var ghost = ((opts && opts.ghost) ? opts.ghost : false);
222219
223 - this.element = YAHOO.util.Dom.get(inElm);
224 - this._height = $D.getDimensions(this.element).height;
225 - this._top = parseInt($D.getStyle(this.element, 'top'));
 220+ this.element = YAHOO.util.Dom.get(inElm);
 221+ this._height = $D.getDimensions(this.element).height;
 222+ this._top = parseInt($D.getStyle(this.element, 'top'));
226223
227 - this._opts = opts;
 224+ this._opts = opts;
228225
229 - YAHOO.util.Dom.setStyle(this.element, 'overflow', 'hidden');
230 - var attributes = {
231 - height: { to: 0 }
232 - };
233 - if (ghost) {
234 - attributes.opacity = {
235 - to : 0,
236 - from: 1
237 - }
238 - }
 226+ YAHOO.util.Dom.setStyle(this.element, 'overflow', 'hidden');
 227+ var attributes = {
 228+ height: { to: 0 }
 229+ };
 230+ if (ghost) {
 231+ attributes.opacity = {
 232+ to : 0,
 233+ from: 1
 234+ }
 235+ }
239236
240 - /**
241 - * Custom Event fired after the effect completes
242 - * @type Object
243 - */
244 - this.onEffectComplete = new YAHOO.util.CustomEvent('oneffectcomplete', this);
 237+ /**
 238+ * Custom Event fired after the effect completes
 239+ * @type Object
 240+ */
 241+ this.onEffectComplete = new YAHOO.util.CustomEvent('oneffectcomplete', this);
245242
 243+ if (opts && opts.bind && (opts.bind == 'bottom')) {
 244+ var attributes = {
 245+ height: { from: 0, to: parseInt(this._height)},
 246+ top: { from: (this._top + parseInt(this._height)), to: this._top }
 247+ };
 248+ if (ghost) {
 249+ attributes.opacity = {
 250+ to : 1,
 251+ from: 0
 252+ }
 253+ }
 254+ }
246255
247 - if (opts && opts.bind && (opts.bind == 'bottom')) {
248 - var attributes = {
249 - height: { from: 0, to: parseInt(this._height)},
250 - top: { from: (this._top + parseInt(this._height)), to: this._top }
251 - };
252 - if (ghost) {
253 - attributes.opacity = {
254 - to : 1,
255 - from: 0
256 - }
257 - }
258 - }
259 -
260 - /**
261 - * YUI Animation Object
262 - * @type Object
263 - */
 256+ /**
 257+ * YUI Animation Object
 258+ * @type Object
 259+ */
264260 this.effect = new YAHOO.util.Anim(this.element, attributes, secs, ease);
265261
266262 this.effect.onComplete.subscribe(function() {
267263 if (this._opts && this._opts.bind && (this._opts.bind == 'bottom')) {
268264 YAHOO.util.Dom.setStyle(this.element, 'top', this._top + 'px');
269265 } else {
270 -
271266 YAHOO.widget.Effects.Hide(this.element);
272267 YAHOO.util.Dom.setStyle(this.element, 'height', this._height+"px");
273268 }
@@ -282,14 +277,13 @@
283278 * Preps the style of the element before running the Animation.
284279 */
285280 YAHOO.widget.Effects.BlindUp.prototype.prepStyle = function() {
286 - if (this._opts && this._opts.bind && (this._opts.bind == 'bottom')) {
 281+ if (this._opts && this._opts.bind && (this._opts.bind == 'bottom')) {
 282+ YAHOO.util.Dom.setStyle(this.element, 'height', '0px');
 283+ YAHOO.util.Dom.setStyle(this.element, 'top', this._height);
 284+ }
287285
288 - YAHOO.util.Dom.setStyle(this.element, 'height', '0px');
289 - YAHOO.util.Dom.setStyle(this.element, 'top', this._height);
290 - }
291 -
292 - YAHOO.util.Dom.setStyle(this.element, 'height', this._height+'px');
293 - YAHOO.widget.Effects.Show(this.element);
 286+ YAHOO.util.Dom.setStyle(this.element, 'height', this._height+'px');
 287+ YAHOO.widget.Effects.Show(this.element);
294288 }
295289 /**
296290 * Fires off the embedded Animation.
@@ -300,326 +294,319 @@
301295 }
302296
303297 YAHOO.widget.Effects.BlindDown = function(inElm, opts) {
304 - var ease = ((opts && opts.ease) ? opts.ease : YAHOO.util.Easing.easeOut);
305 - var secs = ((opts && opts.seconds) ? opts.seconds : 1);
306 - var delay = ((opts && opts.delay) ? opts.delay : false);
307 - var ghost = ((opts && opts.ghost) ? opts.ghost : false);
 298+ var ease = ((opts && opts.ease) ? opts.ease : YAHOO.util.Easing.easeOut);
 299+ var secs = ((opts && opts.seconds) ? opts.seconds : 1);
 300+ var delay = ((opts && opts.delay) ? opts.delay : false);
 301+ var ghost = ((opts && opts.ghost) ? opts.ghost : false);
308302
309 - this.element = YAHOO.util.Dom.get(inElm);
 303+ this.element = YAHOO.util.Dom.get(inElm);
310304
311 - this._opts = opts;
312 - this._height = parseInt($D.getDimensions(this.element).height );
 305+ this._opts = opts;
 306+ this._height = parseInt($D.getDimensions(this.element).height );
313307
314 - this._top = parseInt($D.getStyle(this.element, 'top'));
 308+ this._top = parseInt($D.getStyle(this.element, 'top'));
315309
316 - YAHOO.util.Dom.setStyle(this.element, 'overflow', 'hidden');
317 - var attributes = {
318 - height: { from: 0, to: this._height }
319 - };
320 - if (ghost) {
321 - attributes.opacity = {
322 - to : 1,
323 - from: 0
324 - }
325 - }
326 - /**
327 - * Custom Event fired after the effect completes
328 - * @type Object
329 - */
330 - this.onEffectComplete = new YAHOO.util.CustomEvent('oneffectcomplete', this);
 310+ YAHOO.util.Dom.setStyle(this.element, 'overflow', 'hidden');
 311+ var attributes = {
 312+ height: { from: 0, to: this._height }
 313+ };
 314+ if (ghost) {
 315+ attributes.opacity = {
 316+ to : 1,
 317+ from: 0
 318+ }
 319+ }
 320+ /**
 321+ * Custom Event fired after the effect completes
 322+ * @type Object
 323+ */
 324+ this.onEffectComplete = new YAHOO.util.CustomEvent('oneffectcomplete', this);
331325
 326+ if (opts && opts.bind && (opts.bind == 'bottom')) {
 327+ var attributes = {
 328+ height: { to: 0, from: parseInt(this._height)},
 329+ top: { to: (this._top + parseInt(this._height)), from: this._top }
 330+ };
 331+ if (ghost) {
 332+ attributes.opacity = {
 333+ to : 0,
 334+ from: 1
 335+ }
 336+ }
 337+ }
332338
333 - if (opts && opts.bind && (opts.bind == 'bottom')) {
334 - var attributes = {
335 - height: { to: 0, from: parseInt(this._height)},
336 - top: { to: (this._top + parseInt(this._height)), from: this._top }
337 - };
338 - if (ghost) {
339 - attributes.opacity = {
340 - to : 0,
341 - from: 1
342 - }
343 - }
344 - }
 339+ /**
 340+ * YUI Animation Object
 341+ * @type Object
 342+ */
 343+ this.effect = new YAHOO.util.Anim(this.element, attributes, secs, ease);
345344
346 - /**
347 - * YUI Animation Object
348 - * @type Object
349 - */
350 -
351 - this.effect = new YAHOO.util.Anim(this.element, attributes, secs, ease);
352 -
353 - if (opts && opts.bind && (opts.bind == 'bottom')) {
354 - this.effect.onComplete.subscribe(function() {
355 - YAHOO.widget.Effects.Hide(this.element);
356 - YAHOO.util.Dom.setStyle(this.element, 'top', this._top + 'px');
357 - YAHOO.util.Dom.setStyle(this.element, 'height', this._height + 'px');
358 - YAHOO.util.Dom.setStyle(this.element, 'opacity', 1);
359 - this.onEffectComplete.fire();
360 - }, this, true);
361 - } else {
362 - this.effect.onComplete.subscribe(function() {
363 - YAHOO.util.Dom.setStyle(this.element, 'opacity', 1);
364 - this.onEffectComplete.fire();
365 - }, this, true);
366 - }
367 - if (!delay) {
368 - this.animate();
369 - }
 345+ if (opts && opts.bind && (opts.bind == 'bottom')) {
 346+ this.effect.onComplete.subscribe(function() {
 347+ YAHOO.widget.Effects.Hide(this.element);
 348+ YAHOO.util.Dom.setStyle(this.element, 'top', this._top + 'px');
 349+ YAHOO.util.Dom.setStyle(this.element, 'height', this._height + 'px');
 350+ YAHOO.util.Dom.setStyle(this.element, 'opacity', 1);
 351+ this.onEffectComplete.fire();
 352+ }, this, true);
 353+ } else {
 354+ this.effect.onComplete.subscribe(function() {
 355+ YAHOO.util.Dom.setStyle(this.element, 'opacity', 1);
 356+ this.onEffectComplete.fire();
 357+ }, this, true);
 358+ }
 359+ if (!delay) {
 360+ this.animate();
 361+ }
370362 }
371363 /**
372364 * Preps the style of the element before running the Animation.
373365 */
374366 YAHOO.widget.Effects.BlindDown.prototype.prepStyle = function() {
375 - if (this._opts && this._opts.bind && (this._opts.bind == 'bottom')) {
376 - } else {
 367+ if (this._opts && this._opts.bind && (this._opts.bind == 'bottom')) {
 368+ } else {
 369+ YAHOO.util.Dom.setStyle(this.element, 'height', '0px');
 370+ }
377371
378 - YAHOO.util.Dom.setStyle(this.element, 'height', '0px');
379 - }
380 -
381 - YAHOO.widget.Effects.Show(this.element);
 372+ YAHOO.widget.Effects.Show(this.element);
382373 }
383374 /**
384375 * Fires off the embedded Animation.
385376 */
386377 YAHOO.widget.Effects.BlindDown.prototype.animate = function() {
387 - this.prepStyle();
388 - this.effect.animate();
 378+ this.prepStyle();
 379+ this.effect.animate();
389380 }
390381
391 -
392382 YAHOO.widget.Effects.BlindRight = function(inElm, opts) {
393 - var ease = ((opts && opts.ease) ? opts.ease : YAHOO.util.Easing.easeOut);
394 - var secs = ((opts && opts.seconds) ? opts.seconds : 1);
395 - var delay = ((opts && opts.delay) ? opts.delay : false);
396 - var ghost = ((opts && opts.ghost) ? opts.ghost : false);
397 - this.element = YAHOO.util.Dom.get(inElm);
 383+ var ease = ((opts && opts.ease) ? opts.ease : YAHOO.util.Easing.easeOut);
 384+ var secs = ((opts && opts.seconds) ? opts.seconds : 1);
 385+ var delay = ((opts && opts.delay) ? opts.delay : false);
 386+ var ghost = ((opts && opts.ghost) ? opts.ghost : false);
 387+ this.element = YAHOO.util.Dom.get(inElm);
398388
399 - this._width = parseInt(YAHOO.util.Dom.getStyle(this.element, 'width'));
400 - this._left = parseInt(YAHOO.util.Dom.getStyle(this.element, 'left'));
401 - this._opts = opts;
 389+ this._width = parseInt(YAHOO.util.Dom.getStyle(this.element, 'width'));
 390+ this._left = parseInt(YAHOO.util.Dom.getStyle(this.element, 'left'));
 391+ this._opts = opts;
402392
403 - YAHOO.util.Dom.setStyle(this.element, 'overflow', 'hidden');
404 - /**
405 - * Custom Event fired after the effect completes
406 - * @type Object
407 - */
408 - this.onEffectComplete = new YAHOO.util.CustomEvent('oneffectcomplete', this);
 393+ YAHOO.util.Dom.setStyle(this.element, 'overflow', 'hidden');
 394+ /**
 395+ * Custom Event fired after the effect completes
 396+ * @type Object
 397+ */
 398+ this.onEffectComplete = new YAHOO.util.CustomEvent('oneffectcomplete', this);
409399
410 - var attributes = {
411 - width: { from: 0, to: this._width }
412 - };
413 - if (ghost) {
414 - attributes.opacity = {
415 - to : 1,
416 - from: 0
417 - }
418 - }
 400+ var attributes = {
 401+ width: { from: 0, to: this._width }
 402+ };
 403+ if (ghost) {
 404+ attributes.opacity = {
 405+ to : 1,
 406+ from: 0
 407+ }
 408+ }
419409
420 - if (opts && opts.bind && (opts.bind == 'right')) {
421 - var attributes = {
422 - width: { to: 0 },
423 - /*left: { from: parseInt, to: this._width }*/
424 - left: { to: this._left + parseInt(this._width), from: this._left }
425 - };
426 - if (ghost) {
427 - attributes.opacity = {
428 - to : 0,
429 - from: 1
430 - }
431 - }
432 - }
433 - /**
434 - * YUI Animation Object
435 - * @type Object
436 - */
437 - this.effect = new YAHOO.util.Anim(this.element, attributes, secs, ease);
438 - if (opts && opts.bind && (opts.bind == 'right')) {
439 - this.effect.onComplete.subscribe(function() {
440 - YAHOO.widget.Effects.Hide(this.element);
441 - YAHOO.util.Dom.setStyle(this.element, 'width', this._width + 'px');
442 - YAHOO.util.Dom.setStyle(this.element, 'left', this._left + 'px');
443 - this._width = null;
444 - YAHOO.util.Dom.setStyle(this.element, 'opacity', 1);
445 - this.onEffectComplete.fire();
446 - }, this, true);
447 - } else {
448 - this.effect.onComplete.subscribe(function() {
449 - YAHOO.util.Dom.setStyle(this.element, 'opacity', 1);
450 - this.onEffectComplete.fire();
451 - }, this, true);
452 - }
453 - if (!delay) {
454 - this.animate();
455 - }
 410+ if (opts && opts.bind && (opts.bind == 'right')) {
 411+ var attributes = {
 412+ width: { to: 0 },
 413+ /*left: { from: parseInt, to: this._width }*/
 414+ left: { to: this._left + parseInt(this._width), from: this._left }
 415+ };
 416+ if (ghost) {
 417+ attributes.opacity = {
 418+ to : 0,
 419+ from: 1
 420+ }
 421+ }
 422+ }
 423+ /**
 424+ * YUI Animation Object
 425+ * @type Object
 426+ */
 427+ this.effect = new YAHOO.util.Anim(this.element, attributes, secs, ease);
 428+ if (opts && opts.bind && (opts.bind == 'right')) {
 429+ this.effect.onComplete.subscribe(function() {
 430+ YAHOO.widget.Effects.Hide(this.element);
 431+ YAHOO.util.Dom.setStyle(this.element, 'width', this._width + 'px');
 432+ YAHOO.util.Dom.setStyle(this.element, 'left', this._left + 'px');
 433+ this._width = null;
 434+ YAHOO.util.Dom.setStyle(this.element, 'opacity', 1);
 435+ this.onEffectComplete.fire();
 436+ }, this, true);
 437+ } else {
 438+ this.effect.onComplete.subscribe(function() {
 439+ YAHOO.util.Dom.setStyle(this.element, 'opacity', 1);
 440+ this.onEffectComplete.fire();
 441+ }, this, true);
 442+ }
 443+ if (!delay) {
 444+ this.animate();
 445+ }
456446 }
457447 /**
458448 * Preps the style of the element before running the Animation.
459449 */
460450 YAHOO.widget.Effects.BlindRight.prototype.prepStyle = function() {
461 - if (this._opts && this._opts.bind && (this._opts.bind == 'right')) {
462 - } else {
463 - YAHOO.util.Dom.setStyle(this.element, 'width', '0');
464 - }
 451+ if (this._opts && this._opts.bind && (this._opts.bind == 'right')) {
 452+ } else {
 453+ YAHOO.util.Dom.setStyle(this.element, 'width', '0');
 454+ }
465455 }
466456 /**
467457 * Fires off the embedded Animation.
468458 */
469459 YAHOO.widget.Effects.BlindRight.prototype.animate = function() {
470 - this.prepStyle();
471 - this.effect.animate();
 460+ this.prepStyle();
 461+ this.effect.animate();
472462 }
473463
474464 YAHOO.widget.Effects.BlindLeft = function(inElm, opts) {
475 - var ease = ((opts && opts.ease) ? opts.ease : YAHOO.util.Easing.easeOut);
476 - var secs = ((opts && opts.seconds) ? opts.seconds : 1);
477 - var delay = ((opts && opts.delay) ? opts.delay : false);
478 - var ghost = ((opts && opts.ghost) ? opts.ghost : false);
479 - this.ghost = ghost;
 465+ var ease = ((opts && opts.ease) ? opts.ease : YAHOO.util.Easing.easeOut);
 466+ var secs = ((opts && opts.seconds) ? opts.seconds : 1);
 467+ var delay = ((opts && opts.delay) ? opts.delay : false);
 468+ var ghost = ((opts && opts.ghost) ? opts.ghost : false);
 469+ this.ghost = ghost;
480470
481 - this.element = YAHOO.util.Dom.get(inElm);
482 - this._width = YAHOO.util.Dom.getStyle(this.element, 'width');
483 - this._left = parseInt(YAHOO.util.Dom.getStyle(this.element, 'left'));
 471+ this.element = YAHOO.util.Dom.get(inElm);
 472+ this._width = YAHOO.util.Dom.getStyle(this.element, 'width');
 473+ this._left = parseInt(YAHOO.util.Dom.getStyle(this.element, 'left'));
484474
 475+ this._opts = opts;
 476+ YAHOO.util.Dom.setStyle(this.element, 'overflow', 'hidden');
 477+ var attributes = {
 478+ width: { to: 0 }
 479+ };
 480+ if (ghost) {
 481+ attributes.opacity = {
 482+ to : 0,
 483+ from: 1
 484+ }
 485+ }
485486
486 - this._opts = opts;
487 - YAHOO.util.Dom.setStyle(this.element, 'overflow', 'hidden');
488 - var attributes = {
489 - width: { to: 0 }
490 - };
491 - if (ghost) {
492 - attributes.opacity = {
493 - to : 0,
494 - from: 1
495 - }
496 - }
 487+ /**
 488+ * Custom Event fired after the effect completes
 489+ * @type Object
 490+ */
 491+ this.onEffectComplete = new YAHOO.util.CustomEvent('oneffectcomplete', this);
497492
498 - /**
499 - * Custom Event fired after the effect completes
500 - * @type Object
501 - */
502 - this.onEffectComplete = new YAHOO.util.CustomEvent('oneffectcomplete', this);
 493+ if (opts && opts.bind && (opts.bind == 'right')) {
 494+ var attributes = {
 495+ width: { from: 0, to: parseInt(this._width) },
 496+ left: { from: this._left + parseInt(this._width), to: this._left }
 497+ };
 498+ if (ghost) {
 499+ attributes.opacity = {
 500+ to : 1,
 501+ from: 0
 502+ }
 503+ }
 504+ }
503505
504 -
505 - if (opts && opts.bind && (opts.bind == 'right')) {
506 - var attributes = {
507 - width: { from: 0, to: parseInt(this._width) },
508 - left: { from: this._left + parseInt(this._width), to: this._left }
509 - };
510 - if (ghost) {
511 - attributes.opacity = {
512 - to : 1,
513 - from: 0
514 - }
515 - }
516 - }
517 -
518 - /**
519 - * YUI Animation Object
520 - * @type Object
521 - */
522 - this.effect = new YAHOO.util.Anim(this.element, attributes, secs, ease);
523 - if (opts && opts.bind && (opts.bind == 'right')) {
524 - this.effect.onComplete.subscribe(function() {
525 - this.onEffectComplete.fire();
526 - }, this, true);
527 - } else {
528 - this.effect.onComplete.subscribe(function() {
529 - YAHOO.widget.Effects.Hide(this.element);
530 - YAHOO.util.Dom.setStyle(this.element, 'width', this._width);
531 - YAHOO.util.Dom.setStyle(this.element, 'left', this._left + 'px');
532 - YAHOO.util.Dom.setStyle(this.element, 'opacity', 1);
533 - this._width = null;
534 - this.onEffectComplete.fire();
535 - }, this, true);
536 - }
537 - if (!delay) {
538 - this.animate();
539 - }
 506+ /**
 507+ * YUI Animation Object
 508+ * @type Object
 509+ */
 510+ this.effect = new YAHOO.util.Anim(this.element, attributes, secs, ease);
 511+ if (opts && opts.bind && (opts.bind == 'right')) {
 512+ this.effect.onComplete.subscribe(function() {
 513+ this.onEffectComplete.fire();
 514+ }, this, true);
 515+ } else {
 516+ this.effect.onComplete.subscribe(function() {
 517+ YAHOO.widget.Effects.Hide(this.element);
 518+ YAHOO.util.Dom.setStyle(this.element, 'width', this._width);
 519+ YAHOO.util.Dom.setStyle(this.element, 'left', this._left + 'px');
 520+ YAHOO.util.Dom.setStyle(this.element, 'opacity', 1);
 521+ this._width = null;
 522+ this.onEffectComplete.fire();
 523+ }, this, true);
 524+ }
 525+ if (!delay) {
 526+ this.animate();
 527+ }
540528 }
541529 /**
542530 * Preps the style of the element before running the Animation.
543531 */
544532 YAHOO.widget.Effects.BlindLeft.prototype.prepStyle = function() {
545 - if (this._opts && this._opts.bind && (this._opts.bind == 'right')) {
546 - YAHOO.widget.Effects.Hide(this.element);
547 - YAHOO.util.Dom.setStyle(this.element, 'width', '0px');
548 - YAHOO.util.Dom.setStyle(this.element, 'left', parseInt(this._width));
549 - if (this.ghost) {
550 - YAHOO.util.Dom.setStyle(this.element, 'opacity', 0);
551 - }
552 - YAHOO.widget.Effects.Show(this.element);
553 - }
 533+ if (this._opts && this._opts.bind && (this._opts.bind == 'right')) {
 534+ YAHOO.widget.Effects.Hide(this.element);
 535+ YAHOO.util.Dom.setStyle(this.element, 'width', '0px');
 536+ YAHOO.util.Dom.setStyle(this.element, 'left', parseInt(this._width));
 537+ if (this.ghost) {
 538+ YAHOO.util.Dom.setStyle(this.element, 'opacity', 0);
 539+ }
 540+ YAHOO.widget.Effects.Show(this.element);
 541+ }
554542 }
555543 /**
556544 * Fires off the embedded Animation.
557545 */
558546 YAHOO.widget.Effects.BlindLeft.prototype.animate = function() {
559 - this.prepStyle();
560 - this.effect.animate();
 547+ this.prepStyle();
 548+ this.effect.animate();
561549 }
562550
563 -
564551 YAHOO.widget.Effects.Pulse = function(inElm, opts) {
565 - this.element = YAHOO.util.Dom.get(inElm);
 552+ this.element = YAHOO.util.Dom.get(inElm);
566553
567 - this._counter = 0;
568 - this._maxCount = 9;
569 - var attributes = {
570 - opacity: { from: 1, to: 0 }
571 - };
 554+ this._counter = 0;
 555+ this._maxCount = 9;
 556+ var attributes = {
 557+ opacity: { from: 1, to: 0 }
 558+ };
572559
573 - if (opts && opts.maxcount) {
574 - this._maxCount = opts.maxcount;
575 - }
 560+ if (opts && opts.maxcount) {
 561+ this._maxCount = opts.maxcount;
 562+ }
576563
577 - /**
578 - * Custom Event fired after the effect completes
579 - * @type Object
580 - */
581 - this.onEffectComplete = new YAHOO.util.CustomEvent('oneffectcomplete', this);
 564+ /**
 565+ * Custom Event fired after the effect completes
 566+ * @type Object
 567+ */
 568+ this.onEffectComplete = new YAHOO.util.CustomEvent('oneffectcomplete', this);
582569
583 - var ease = ((opts && opts.ease) ? opts.ease : YAHOO.util.Easing.easeIn);
584 - var secs = ((opts && opts.seconds) ? opts.seconds : .25);
585 - var delay = ((opts && opts.delay) ? opts.delay : false);
 570+ var ease = ((opts && opts.ease) ? opts.ease : YAHOO.util.Easing.easeIn);
 571+ var secs = ((opts && opts.seconds) ? opts.seconds : .25);
 572+ var delay = ((opts && opts.delay) ? opts.delay : false);
586573
587 - /**
588 - * YUI Animation Object
589 - * @type Object
590 - */
591 - this.effect = new YAHOO.util.Anim(this.element, attributes, secs, ease);
592 - this.effect.onComplete.subscribe(function() {
593 - if (this.done) {
594 - this.onEffectComplete.fire();
595 - } else {
596 - if (this._counter < this._maxCount) {
597 - this._counter++;
598 - if (this._on) {
599 - this._on = null;
600 - this.effect.attributes = { opacity: { to: 0 } }
601 - } else {
602 - this._on = true;
603 - this.effect.attributes = { opacity: { to: 1 } }
604 - }
605 - this.effect.animate();
606 - } else {
607 - this.done = true;
608 - this._on = null;
609 - this._counter = null;
610 - this.effect.attributes = { opacity: { to: 1 } }
611 - this.effect.animate();
612 - }
613 - }
614 - }, this, true);
615 - if (!delay) {
616 - this.effect.animate();
617 - }
 574+ /**
 575+ * YUI Animation Object
 576+ * @type Object
 577+ */
 578+ this.effect = new YAHOO.util.Anim(this.element, attributes, secs, ease);
 579+ this.effect.onComplete.subscribe(function() {
 580+ if (this.done) {
 581+ this.onEffectComplete.fire();
 582+ } else {
 583+ if (this._counter < this._maxCount) {
 584+ this._counter++;
 585+ if (this._on) {
 586+ this._on = null;
 587+ this.effect.attributes = { opacity: { to: 0 } }
 588+ } else {
 589+ this._on = true;
 590+ this.effect.attributes = { opacity: { to: 1 } }
 591+ }
 592+ this.effect.animate();
 593+ } else {
 594+ this.done = true;
 595+ this._on = null;
 596+ this._counter = null;
 597+ this.effect.attributes = { opacity: { to: 1 } }
 598+ this.effect.animate();
 599+ }
 600+ }
 601+ }, this, true);
 602+ if (!delay) {
 603+ this.effect.animate();
 604+ }
618605 }
619606 /**
620607 * Fires off the embedded Animation.
621608 */
622609 YAHOO.widget.Effects.Pulse.prototype.animate = function() {
623 - this.effect.animate();
 610+ this.effect.animate();
624611 }
625612
626613 /**
@@ -637,95 +624,90 @@
638625 * @type Object
639626 */
640627 YAHOO.widget.Effects.Shadow = function(inElm, opts) {
641 - var delay = ((opts && opts.delay) ? opts.delay : false);
642 - var topOffset = ((opts && opts.top) ? opts.top : 8);
643 - var leftOffset = ((opts && opts.left) ? opts.left : 8);
644 - var shadowColor = ((opts && opts.color) ? opts.color : '#ccc');
645 - var shadowOpacity = ((opts && opts.opacity) ? opts.opacity : .75);
 628+ var delay = ((opts && opts.delay) ? opts.delay : false);
 629+ var topOffset = ((opts && opts.top) ? opts.top : 8);
 630+ var leftOffset = ((opts && opts.left) ? opts.left : 8);
 631+ var shadowColor = ((opts && opts.color) ? opts.color : '#ccc');
 632+ var shadowOpacity = ((opts && opts.opacity) ? opts.opacity : .75);
646633
647 - this.element = YAHOO.util.Dom.get(inElm);
 634+ this.element = YAHOO.util.Dom.get(inElm);
648635
 636+ if (YAHOO.util.Dom.get(this.element.id + '_shadow')) {
 637+ this.shadow = YAHOO.util.Dom.get(this.element.id + '_shadow');
 638+ } else {
 639+ this.shadow = document.createElement('div');
 640+ this.shadow.id = this.element.id + '_shadow';
 641+ this.element.parentNode.appendChild(this.shadow);
 642+ }
649643
650 - if (YAHOO.util.Dom.get(this.element.id + '_shadow')) {
651 - this.shadow = YAHOO.util.Dom.get(this.element.id + '_shadow');
652 - } else {
653 - this.shadow = document.createElement('div');
654 - this.shadow.id = this.element.id + '_shadow';
655 - this.element.parentNode.appendChild(this.shadow);
656 - }
 644+ var h = parseInt($T.getHeight(this.element));
 645+ var w = parseInt(YAHOO.util.Dom.getStyle(this.element, 'width'));
 646+ var z = this.element.style.zIndex;
 647+ if (!z) {
 648+ z = 1;
 649+ this.element.style.zIndex = z;
 650+ }
657651
658 - var h = parseInt($T.getHeight(this.element));
659 - var w = parseInt(YAHOO.util.Dom.getStyle(this.element, 'width'));
660 - var z = this.element.style.zIndex;
661 - if (!z) {
662 - z = 1;
663 - this.element.style.zIndex = z;
664 - }
 652+ YAHOO.util.Dom.setStyle(this.element, 'overflow', 'hidden');
 653+ YAHOO.util.Dom.setStyle(this.shadow, 'height', h + 'px');
 654+ YAHOO.util.Dom.setStyle(this.shadow, 'width', w + 'px');
 655+ YAHOO.util.Dom.setStyle(this.shadow, 'background-color', shadowColor);
 656+ YAHOO.util.Dom.setStyle(this.shadow, 'opacity', 0);
 657+ YAHOO.util.Dom.setStyle(this.shadow, 'position', 'absolute');
 658+ this.shadow.style.zIndex = (z - 1);
 659+ var xy = YAHOO.util.Dom.getXY(this.element);
665660
666 - YAHOO.util.Dom.setStyle(this.element, 'overflow', 'hidden');
667 - YAHOO.util.Dom.setStyle(this.shadow, 'height', h + 'px');
668 - YAHOO.util.Dom.setStyle(this.shadow, 'width', w + 'px');
669 - YAHOO.util.Dom.setStyle(this.shadow, 'background-color', shadowColor);
670 - YAHOO.util.Dom.setStyle(this.shadow, 'opacity', 0);
671 - YAHOO.util.Dom.setStyle(this.shadow, 'position', 'absolute');
672 - this.shadow.style.zIndex = (z - 1);
673 - var xy = YAHOO.util.Dom.getXY(this.element);
 661+ /**
 662+ * Custom Event fired after the effect completes
 663+ * @type Object
 664+ */
 665+ this.onEffectComplete = new YAHOO.util.CustomEvent('oneffectcomplete', this);
674666
675 - /**
676 - * Custom Event fired after the effect completes
677 - * @type Object
678 - */
679 - this.onEffectComplete = new YAHOO.util.CustomEvent('oneffectcomplete', this);
 667+ var attributes = {
 668+ opacity: { from: 0, to: shadowOpacity },
 669+ top: {
 670+ from: xy[1],
 671+ to: (xy[1] + topOffset)
 672+ },
 673+ left: {
 674+ from: xy[0],
 675+ to: (xy[0] + leftOffset)
 676+ }
 677+ };
680678
681 -
682 - var attributes = {
683 - opacity: { from: 0, to: shadowOpacity },
684 - top: {
685 - from: xy[1],
686 - to: (xy[1] + topOffset)
687 - },
688 - left: {
689 - from: xy[0],
690 - to: (xy[0] + leftOffset)
691 - }
692 - };
693 -
694 - /**
695 - * YUI Animation Object
696 - * @type Object
697 - */
698 - this.effect = new YAHOO.util.Anim(this.shadow, attributes);
699 - this.effect.onComplete.subscribe(function() {
700 - this.onEffectComplete.fire();
701 - }, this, true);
702 - if (!delay) {
703 - this.animate();
704 - }
 679+ /**
 680+ * YUI Animation Object
 681+ * @type Object
 682+ */
 683+ this.effect = new YAHOO.util.Anim(this.shadow, attributes);
 684+ this.effect.onComplete.subscribe(function() {
 685+ this.onEffectComplete.fire();
 686+ }, this, true);
 687+ if (!delay) {
 688+ this.animate();
 689+ }
705690 }
706691 /**
707692 * Fires off the embedded Animation.
708693 */
709694 YAHOO.widget.Effects.Shadow.prototype.animate = function() {
710 - this.effect.animate();
 695+ this.effect.animate();
711696 }
712697 /**
713698 * String function for reporting to YUI Logger
714699 */
715700 YAHOO.widget.Effects.Shadow.prototype.toString = function() {
716 - return 'Effect Shadow [' + this.element.id + ']';
 701+ return 'Effect Shadow [' + this.element.id + ']';
717702 }
718703
719 -
720 -
721704 if (!YAHOO.Tools) {
722 - $T = {
723 - getHeight: function(el) {
724 - return YAHOO.util.Dom.getStyle(el, 'height');
725 - }
726 - }
 705+ $T = {
 706+ getHeight: function(el) {
 707+ return YAHOO.util.Dom.getStyle(el, 'height');
 708+ }
 709+ }
727710 }
728711
729 -
730712 /**
731713 * @class
732714 * This is a namespace call, nothing here to see.
@@ -742,28 +724,28 @@
743725 * @type Object
744726 */
745727 YAHOO.widget.Effects.ContainerEffect.BlindUpDownBinded = function(overlay, dur) {
746 - var bupdownbinded = new YAHOO.widget.ContainerEffect(overlay,
747 - { attributes: {
748 - effect: 'BlindUp',
749 - opts: {
750 - bind: 'bottom'
751 - }
752 - },
753 - duration: dur
754 - }, {
755 - attributes: {
756 - effect: 'BlindDown',
757 - opts: {
758 - bind: 'bottom'
759 - }
760 - },
761 - duration: dur
762 - },
763 - overlay.element,
764 - YAHOO.widget.Effects.Container
765 - );
766 - bupdownbinded.init();
767 - return bupdownbinded;
 728+ var bupdownbinded = new YAHOO.widget.ContainerEffect(overlay,
 729+ { attributes: {
 730+ effect: 'BlindUp',
 731+ opts: {
 732+ bind: 'bottom'
 733+ }
 734+ },
 735+ duration: dur
 736+ }, {
 737+ attributes: {
 738+ effect: 'BlindDown',
 739+ opts: {
 740+ bind: 'bottom'
 741+ }
 742+ },
 743+ duration: dur
 744+ },
 745+ overlay.element,
 746+ YAHOO.widget.Effects.Container
 747+ );
 748+ bupdownbinded.init();
 749+ return bupdownbinded;
768750 }
769751 /**
770752 * @constructor
@@ -774,9 +756,9 @@
775757 * @type Object
776758 */
777759 YAHOO.widget.Effects.ContainerEffect.BlindUpDown = function(overlay, dur) {
778 - var bupdown = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindDown' }, duration: dur }, { attributes: { effect: 'BlindUp' }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
779 - bupdown.init();
780 - return bupdown;
 760+ var bupdown = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindDown' }, duration: dur }, { attributes: { effect: 'BlindUp' }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
 761+ bupdown.init();
 762+ return bupdown;
781763 }
782764 /**
783765 * @constructor
@@ -787,9 +769,9 @@
788770 * @type Object
789771 */
790772 YAHOO.widget.Effects.ContainerEffect.BlindLeftRightBinded = function(overlay, dur) {
791 - var bleftrightbinded = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindLeft', opts: {bind: 'right'} }, duration: dur }, { attributes: { effect: 'BlindRight', opts: { bind: 'right' } }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
792 - bleftrightbinded.init();
793 - return bleftrightbinded;
 773+ var bleftrightbinded = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindLeft', opts: {bind: 'right'} }, duration: dur }, { attributes: { effect: 'BlindRight', opts: { bind: 'right' } }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
 774+ bleftrightbinded.init();
 775+ return bleftrightbinded;
794776 }
795777 /**
796778 * @constructor
@@ -800,9 +782,9 @@
801783 * @type Object
802784 */
803785 YAHOO.widget.Effects.ContainerEffect.BlindLeftRight = function(overlay, dur) {
804 - var bleftright = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindRight' }, duration: dur }, { attributes: { effect: 'BlindLeft' } , duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
805 - bleftright.init();
806 - return bleftright;
 786+ var bleftright = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindRight' }, duration: dur }, { attributes: { effect: 'BlindLeft' } , duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
 787+ bleftright.init();
 788+ return bleftright;
807789 }
808790 /**
809791 * @constructor
@@ -813,9 +795,9 @@
814796 * @type Object
815797 */
816798 YAHOO.widget.Effects.ContainerEffect.BlindRightFold = function(overlay, dur) {
817 - var brightfold = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindRight' }, duration: dur }, { attributes: { effect: 'Fold' }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
818 - brightfold.init();
819 - return brightfold;
 799+ var brightfold = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindRight' }, duration: dur }, { attributes: { effect: 'Fold' }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
 800+ brightfold.init();
 801+ return brightfold;
820802 }
821803 /**
822804 * @constructor
@@ -826,9 +808,9 @@
827809 * @type Object
828810 */
829811 YAHOO.widget.Effects.ContainerEffect.BlindLeftFold = function(overlay, dur) {
830 - var bleftfold = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindLeft', opts: { bind: 'right' } }, duration: dur }, { attributes: { effect: 'Fold' }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
831 - bleftfold.init();
832 - return bleftfold;
 812+ var bleftfold = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindLeft', opts: { bind: 'right' } }, duration: dur }, { attributes: { effect: 'Fold' }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
 813+ bleftfold.init();
 814+ return bleftfold;
833815 }
834816 /**
835817 * @constructor
@@ -839,9 +821,9 @@
840822 * @type Object
841823 */
842824 YAHOO.widget.Effects.ContainerEffect.UnFoldFold = function(overlay, dur) {
843 - var bunfold = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'UnFold' }, duration: dur }, { attributes: { effect: 'Fold' }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
844 - bunfold.init();
845 - return bunfold;
 825+ var bunfold = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'UnFold' }, duration: dur }, { attributes: { effect: 'Fold' }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
 826+ bunfold.init();
 827+ return bunfold;
846828 }
847829 /**
848830 * @constructor
@@ -852,9 +834,9 @@
853835 * @type Object
854836 */
855837 YAHOO.widget.Effects.ContainerEffect.BlindDownDrop = function(overlay, dur) {
856 - var bdowndrop = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindDown' }, duration: dur }, { attributes: { effect: 'Drop' }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
857 - bdowndrop.init();
858 - return bdowndrop;
 838+ var bdowndrop = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindDown' }, duration: dur }, { attributes: { effect: 'Drop' }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
 839+ bdowndrop.init();
 840+ return bdowndrop;
859841 }
860842
861843 /**
@@ -866,9 +848,9 @@
867849 * @type Object
868850 */
869851 YAHOO.widget.Effects.ContainerEffect.BlindUpDrop = function(overlay, dur) {
870 - var bupdrop = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindUp', opts: { bind: 'bottom' } }, duration: dur }, { attributes: { effect: 'Drop' }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
871 - bupdrop.init();
872 - return bupdrop;
 852+ var bupdrop = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindUp', opts: { bind: 'bottom' } }, duration: dur }, { attributes: { effect: 'Drop' }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
 853+ bupdrop.init();
 854+ return bupdrop;
873855 }
874856
875857 /**
@@ -880,9 +862,9 @@
881863 * @type Object
882864 */
883865 YAHOO.widget.Effects.ContainerEffect.BlindUpDownBindedGhost = function(overlay, dur) {
884 - var bupdownbinded = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindUp', opts: {ghost: true, bind: 'bottom' } }, duration: dur }, { attributes: { effect: 'BlindDown', opts: { ghost: true, bind: 'bottom'} }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container);
885 - bupdownbinded.init();
886 - return bupdownbinded;
 866+ var bupdownbinded = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindUp', opts: {ghost: true, bind: 'bottom' } }, duration: dur }, { attributes: { effect: 'BlindDown', opts: { ghost: true, bind: 'bottom'} }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container);
 867+ bupdownbinded.init();
 868+ return bupdownbinded;
887869 }
888870 /**
889871 * @constructor
@@ -893,9 +875,9 @@
894876 * @type Object
895877 */
896878 YAHOO.widget.Effects.ContainerEffect.BlindUpDownGhost = function(overlay, dur) {
897 - var bupdown = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindDown', opts: { ghost: true } }, duration: dur }, { attributes: { effect: 'BlindUp', opts: { ghost: true } }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
898 - bupdown.init();
899 - return bupdown;
 879+ var bupdown = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindDown', opts: { ghost: true } }, duration: dur }, { attributes: { effect: 'BlindUp', opts: { ghost: true } }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
 880+ bupdown.init();
 881+ return bupdown;
900882 }
901883 /**
902884 * @constructor
@@ -906,9 +888,9 @@
907889 * @type Object
908890 */
909891 YAHOO.widget.Effects.ContainerEffect.BlindLeftRightBindedGhost = function(overlay, dur) {
910 - var bleftrightbinded = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindLeft', opts: {bind: 'right', ghost: true } }, duration: dur }, { attributes: { effect: 'BlindRight', opts: { bind: 'right', ghost: true } }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
911 - bleftrightbinded.init();
912 - return bleftrightbinded;
 892+ var bleftrightbinded = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindLeft', opts: {bind: 'right', ghost: true } }, duration: dur }, { attributes: { effect: 'BlindRight', opts: { bind: 'right', ghost: true } }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
 893+ bleftrightbinded.init();
 894+ return bleftrightbinded;
913895 }
914896 /**
915897 * @constructor
@@ -919,9 +901,9 @@
920902 * @type Object
921903 */
922904 YAHOO.widget.Effects.ContainerEffect.BlindLeftRightGhost = function(overlay, dur) {
923 - var bleftright = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindRight', opts: { ghost: true } }, duration: dur }, { attributes: { effect: 'BlindLeft', opts: { ghost: true } } , duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
924 - bleftright.init();
925 - return bleftright;
 905+ var bleftright = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindRight', opts: { ghost: true } }, duration: dur }, { attributes: { effect: 'BlindLeft', opts: { ghost: true } } , duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
 906+ bleftright.init();
 907+ return bleftright;
926908 }
927909 /**
928910 * @constructor
@@ -932,9 +914,9 @@
933915 * @type Object
934916 */
935917 YAHOO.widget.Effects.ContainerEffect.BlindRightFoldGhost = function(overlay, dur) {
936 - var brightfold = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindRight', opts: { ghost: true } }, duration: dur }, { attributes: { effect: 'Fold', opts: { ghost: true } }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
937 - brightfold.init();
938 - return brightfold;
 918+ var brightfold = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindRight', opts: { ghost: true } }, duration: dur }, { attributes: { effect: 'Fold', opts: { ghost: true } }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
 919+ brightfold.init();
 920+ return brightfold;
939921 }
940922 /**
941923 * @constructor
@@ -945,9 +927,9 @@
946928 * @type Object
947929 */
948930 YAHOO.widget.Effects.ContainerEffect.BlindLeftFoldGhost = function(overlay, dur) {
949 - var bleftfold = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindLeft', opts: { bind: 'right', ghost: true } }, duration: dur }, { attributes: { effect: 'Fold', opts: { ghost: true } }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
950 - bleftfold.init();
951 - return bleftfold;
 931+ var bleftfold = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindLeft', opts: { bind: 'right', ghost: true } }, duration: dur }, { attributes: { effect: 'Fold', opts: { ghost: true } }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
 932+ bleftfold.init();
 933+ return bleftfold;
952934 }
953935 /**
954936 * @constructor
@@ -958,9 +940,9 @@
959941 * @type Object
960942 */
961943 YAHOO.widget.Effects.ContainerEffect.UnFoldFoldGhost = function(overlay, dur) {
962 - var bleftfold = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'UnFold', opts: { ghost: true } }, duration: dur }, { attributes: { effect: 'Fold', opts: { ghost: true } }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
963 - bleftfold.init();
964 - return bleftfold;
 944+ var bleftfold = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'UnFold', opts: { ghost: true } }, duration: dur }, { attributes: { effect: 'Fold', opts: { ghost: true } }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
 945+ bleftfold.init();
 946+ return bleftfold;
965947 }
966948
967949 /**
@@ -972,9 +954,9 @@
973955 * @type Object
974956 */
975957 YAHOO.widget.Effects.ContainerEffect.BlindDownDropGhost = function(overlay, dur) {
976 - var bdowndrop = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindDown', opts: { ghost: true } }, duration: dur }, { attributes: { effect: 'Drop' }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
977 - bdowndrop.init();
978 - return bdowndrop;
 958+ var bdowndrop = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindDown', opts: { ghost: true } }, duration: dur }, { attributes: { effect: 'Drop' }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
 959+ bdowndrop.init();
 960+ return bdowndrop;
979961 }
980962
981963 /**
@@ -986,13 +968,11 @@
987969 * @type Object
988970 */
989971 YAHOO.widget.Effects.ContainerEffect.BlindUpDropGhost = function(overlay, dur) {
990 - var bupdrop = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindUp', opts: { bind: 'bottom', ghost: true } }, duration: dur }, { attributes: { effect: 'Drop' }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
991 - bupdrop.init();
992 - return bupdrop;
 972+ var bupdrop = new YAHOO.widget.ContainerEffect(overlay, { attributes: { effect: 'BlindUp', opts: { bind: 'bottom', ghost: true } }, duration: dur }, { attributes: { effect: 'Drop' }, duration: dur }, overlay.element, YAHOO.widget.Effects.Container );
 973+ bupdrop.init();
 974+ return bupdrop;
993975 }
994976
995 -
996 -
997977 /**
998978 * @class
999979 * This is a wrapper function to convert my YAHOO.widget.Effect into a YAHOO.widget.ContainerEffects object
@@ -1001,36 +981,36 @@
1002982 * @type Object
1003983 */
1004984 YAHOO.widget.Effects.Container = function(el, attrs, dur) {
1005 - var opts = { delay: true };
1006 - if (attrs.opts) {
1007 - for (var i in attrs.opts) {
1008 - opts[i] = attrs.opts[i];
1009 - }
1010 - }
1011 - //var eff = eval('new YAHOO.widget.Effects.' + attrs.effect + '("' + el.id + '", {delay: true' + opts + '})');
1012 - var func = eval('YAHOO.widget.Effects.' + attrs.effect);
1013 - var eff = new func(el, opts);
 985+ var opts = { delay: true };
 986+ if (attrs.opts) {
 987+ for (var i in attrs.opts) {
 988+ opts[i] = attrs.opts[i];
 989+ }
 990+ }
 991+ //var eff = eval('new YAHOO.widget.Effects.' + attrs.effect + '("' + el.id + '", {delay: true' + opts + '})');
 992+ var func = eval('YAHOO.widget.Effects.' + attrs.effect);
 993+ var eff = new func(el, opts);
1014994
1015 - /**
1016 - * Empty event handler to make ContainerEffects happy<br>
1017 - * May try to attach them to my effects later
1018 - * @type Object
1019 - */
1020 - //eff.onStart = new YAHOO.util.CustomEvent('onstart', this);
1021 - eff.onStart = eff.effect.onStart;
1022 - /**
1023 - * Empty event handler to make ContainerEffects happy<br>
1024 - * May try to attach them to my effects later
1025 - * @type Object
1026 - */
1027 - //eff.onTween = new YAHOO.util.CustomEvent('ontween', this);
1028 - eff.onTween = eff.effect.onTween;
1029 - /**
1030 - * Empty event handler to make ContainerEffects happy<br>
1031 - * May try to attach them to my effects later
1032 - * @type Object
1033 - */
1034 - //eff.onComplete = new YAHOO.util.CustomEvent('oncomplete', this);
1035 - eff.onComplete = eff.onEffectComplete;
1036 - return eff;
1037 -}
 995+ /**
 996+ * Empty event handler to make ContainerEffects happy<br>
 997+ * May try to attach them to my effects later
 998+ * @type Object
 999+ */
 1000+ //eff.onStart = new YAHOO.util.CustomEvent('onstart', this);
 1001+ eff.onStart = eff.effect.onStart;
 1002+ /**
 1003+ * Empty event handler to make ContainerEffects happy<br>
 1004+ * May try to attach them to my effects later
 1005+ * @type Object
 1006+ */
 1007+ //eff.onTween = new YAHOO.util.CustomEvent('ontween', this);
 1008+ eff.onTween = eff.effect.onTween;
 1009+ /**
 1010+ * Empty event handler to make ContainerEffects happy<br>
 1011+ * May try to attach them to my effects later
 1012+ * @type Object
 1013+ */
 1014+ //eff.onComplete = new YAHOO.util.CustomEvent('oncomplete', this);
 1015+ eff.onComplete = eff.onEffectComplete;
 1016+ return eff;
 1017+}
\ No newline at end of file

Status & tagging log