Changeset 1166
- Timestamp:
- 10/17/06 10:28:02 (2 years ago)
- Files:
-
- mochikit/trunk/MochiKit/Base.js (modified) (1 diff)
- mochikit/trunk/doc/html/MochiKit/VersionHistory.html (modified) (1 diff)
- mochikit/trunk/doc/html/MochiKit/index.html (modified) (1 diff)
- mochikit/trunk/doc/rst/MochiKit/VersionHistory.rst (modified) (1 diff)
- mochikit/trunk/packed/MochiKit/MochiKit.js (modified) (33 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
mochikit/trunk/MochiKit/Base.js
r1161 r1166 1118 1118 /** @id MochiKit.Base.parseQueryString */ 1119 1119 parseQueryString: function (encodedString, useArrays) { 1120 var pairs = encodedString.replace(/\+/g, "%20").split( "&");1120 var pairs = encodedString.replace(/\+/g, "%20").split(/(\&\;|\&\#38\;|\&|\&)/); 1121 1121 var o = {}; 1122 1122 var decode; mochikit/trunk/doc/html/MochiKit/VersionHistory.html
r1144 r1166 16 16 <p>2006-XX-XX v1.4</p> 17 17 <ul class="simple"> 18 <li>parseQueryString now splits on HTML entities equivalent to ampersand as well</li> 18 19 <li>Better XHTML compatibility (removed obvious cases where uppercase tagName or 19 20 nodeName was assumed)</li> mochikit/trunk/doc/html/MochiKit/index.html
r1144 r1166 69 69 <p>2006-XX-XX v1.4</p> 70 70 <ul class="simple"> 71 <li>parseQueryString now splits on HTML entities equivalent to ampersand as well</li> 71 72 <li>Better XHTML compatibility (removed obvious cases where uppercase tagName or 72 73 nodeName was assumed)</li> mochikit/trunk/doc/rst/MochiKit/VersionHistory.rst
r1144 r1166 1 1 2006-XX-XX v1.4 2 2 3 - parseQueryString now splits on HTML entities equivalent to ampersand as well 3 4 - Better XHTML compatibility (removed obvious cases where uppercase tagName or 4 5 nodeName was assumed) mochikit/trunk/packed/MochiKit/MochiKit.js
r1162 r1166 867 867 return rval.join("&"); 868 868 },parseQueryString:function(_130,_131){ 869 var _132=_130.replace(/\+/g,"%20").split( "&");869 var _132=_130.replace(/\+/g,"%20").split(/(\&\;|\&\#38\;|\&|\&)/); 870 870 var o={}; 871 871 var _133; … … 3433 3433 if(o==1){ 3434 3434 var _430=/Gecko/.test(navigator.userAgent)&&!(/Konqueror|Safari|KHTML/.test(navigator.userAgent)); 3435 self.setStyle(elem,{opacity:_430?0.999999: null});3435 self.setStyle(elem,{opacity:_430?0.999999:1}); 3436 3436 if(/MSIE/.test(navigator.userAgent)){ 3437 3437 self.setStyle(elem,{filter:self.getStyle(elem,"filter").replace(/alpha\([^\)]*\)/gi,"")}); … … 4410 4410 JSAN.use("MochiKit.Base",[]); 4411 4411 JSAN.use("MochiKit.DOM",[]); 4412 JSAN.use("MochiKit.Style",[]); 4412 4413 } 4413 4414 try{ … … 4775 4776 var _594=self._disconnect; 4776 4777 var _595=self._observers; 4778 var i,ident; 4777 4779 if(_593.length===0){ 4778 for( vari=_595.length-1;i>=0;i--){4779 var _596=_595[i];4780 if( _596[0]===src){4781 _594( _596);4780 for(i=_595.length-1;i>=0;i--){ 4781 ident=_595[i]; 4782 if(ident[0]===src){ 4783 _594(ident); 4782 4784 _595.splice(i,1); 4783 4785 } … … 4785 4787 }else{ 4786 4788 var sigs={}; 4787 for( vari=0;i<_593.length;i++){4789 for(i=0;i<_593.length;i++){ 4788 4790 sigs[_593[i]]=true; 4789 4791 } 4790 for( vari=_595.length-1;i>=0;i--){4791 var _596=_595[i];4792 if( _596[0]===src&&_596[1] in sigs){4793 _594( _596);4792 for(i=_595.length-1;i>=0;i--){ 4793 ident=_595[i]; 4794 if(ident[0]===src&&ident[1] in sigs){ 4795 _594(ident); 4794 4796 _595.splice(i,1); 4795 4797 } … … 4797 4799 } 4798 4800 },signal:function(src,sig){ 4799 var _59 8=MochiKit.Signal._observers;4801 var _597=MochiKit.Signal._observers; 4800 4802 src=MochiKit.DOM.getElement(src); 4801 4803 var args=MochiKit.Base.extend(null,arguments,2); 4802 var _59 9=[];4803 for(var i=0;i<_59 8.length;i++){4804 var _ 600=_598[i];4805 if(_ 600[0]===src&&_600[1]===sig){4806 try{ 4807 _ 600[2].apply(src,args);4804 var _598=[]; 4805 for(var i=0;i<_597.length;i++){ 4806 var _599=_597[i]; 4807 if(_599[0]===src&&_599[1]===sig){ 4808 try{ 4809 _599[2].apply(src,args); 4808 4810 } 4809 4811 catch(e){ 4810 _59 9.push(e);4811 } 4812 } 4813 } 4814 if(_59 9.length==1){4815 throw _59 9[0];4816 }else{ 4817 if(_59 9.length>1){4812 _598.push(e); 4813 } 4814 } 4815 } 4816 if(_598.length==1){ 4817 throw _598[0]; 4818 }else{ 4819 if(_598.length>1){ 4818 4820 var e=new Error("Multiple errors thrown in handling 'sig', see errors property"); 4819 e.errors=_59 9;4821 e.errors=_598; 4820 4822 throw e; 4821 4823 } … … 4876 4878 return this.__repr__(); 4877 4879 }; 4878 MochiKit.Visual._RoundCorners=function(e,_60 1){4880 MochiKit.Visual._RoundCorners=function(e,_600){ 4879 4881 e=MochiKit.DOM.getElement(e); 4880 this._setOptions(_60 1);4882 this._setOptions(_600); 4881 4883 if(this.options.__unstable__wrapElement){ 4882 4884 e=this._doWrap(e); 4883 4885 } 4884 var _60 2=this.options.color;4886 var _601=this.options.color; 4885 4887 var C=MochiKit.Color.Color; 4886 4888 if(this.options.color==="fromElement"){ 4887 _60 2=C.fromBackground(e);4888 }else{ 4889 if(!(_60 2instanceof C)){4890 _60 2=C.fromString(_602);4891 } 4892 } 4893 this.isTransparent=(_60 2.asRGB().a<=0);4894 var _60 4=this.options.bgColor;4889 _601=C.fromBackground(e); 4890 }else{ 4891 if(!(_601 instanceof C)){ 4892 _601=C.fromString(_601); 4893 } 4894 } 4895 this.isTransparent=(_601.asRGB().a<=0); 4896 var _603=this.options.bgColor; 4895 4897 if(this.options.bgColor==="fromParent"){ 4896 _60 4=C.fromBackground(e.offsetParent);4897 }else{ 4898 if(!(_60 4instanceof C)){4899 _60 4=C.fromString(_604);4900 } 4901 } 4902 this._roundCornersImpl(e,_60 2,_604);4898 _603=C.fromBackground(e.offsetParent); 4899 }else{ 4900 if(!(_603 instanceof C)){ 4901 _603=C.fromString(_603); 4902 } 4903 } 4904 this._roundCornersImpl(e,_601,_603); 4903 4905 }; 4904 4906 MochiKit.Visual._RoundCorners.prototype={_doWrap:function(e){ 4905 var _60 5=e.parentNode;4907 var _604=e.parentNode; 4906 4908 var doc=MochiKit.DOM.currentDocument(); 4907 4909 if(typeof (doc.defaultView)==="undefined"||doc.defaultView===null){ 4908 4910 return e; 4909 4911 } 4910 var _60 6=doc.defaultView.getComputedStyle(e,null);4911 if(typeof (_60 6)==="undefined"||_606===null){4912 var _605=doc.defaultView.getComputedStyle(e,null); 4913 if(typeof (_605)==="undefined"||_605===null){ 4912 4914 return e; 4913 4915 } 4914 var _60 7=MochiKit.DOM.DIV({"style":{display:"block",marginTop:_606.getPropertyValue("padding-top"),marginRight:_606.getPropertyValue("padding-right"),marginBottom:_606.getPropertyValue("padding-bottom"),marginLeft:_606.getPropertyValue("padding-left"),padding:"0px"}});4915 _60 7.innerHTML=e.innerHTML;4916 var _606=MochiKit.DOM.DIV({"style":{display:"block",marginTop:_605.getPropertyValue("padding-top"),marginRight:_605.getPropertyValue("padding-right"),marginBottom:_605.getPropertyValue("padding-bottom"),marginLeft:_605.getPropertyValue("padding-left"),padding:"0px"}}); 4917 _606.innerHTML=e.innerHTML; 4916 4918 e.innerHTML=""; 4917 e.appendChild(_60 7);4919 e.appendChild(_606); 4918 4920 return e; 4919 },_roundCornersImpl:function(e,_60 8,_609){4921 },_roundCornersImpl:function(e,_607,_608){ 4920 4922 if(this.options.border){ 4921 this._renderBorder(e,_60 9);4923 this._renderBorder(e,_608); 4922 4924 } 4923 4925 if(this._isTopRounded()){ 4924 this._roundTopCorners(e,_60 8,_609);4926 this._roundTopCorners(e,_607,_608); 4925 4927 } 4926 4928 if(this._isBottomRounded()){ 4927 this._roundBottomCorners(e,_60 8,_609);4928 } 4929 },_renderBorder:function(el,_61 1){4930 var _61 2="1px solid "+this._borderColor(_611);4931 var _61 3="border-left: "+_612;4932 var _61 4="border-right: "+_612;4933 var _61 5="style='"+_613+";"+_614+"'";4934 el.innerHTML="<div "+_61 5+">"+el.innerHTML+"</div>";4935 },_roundTopCorners:function(el,_61 6,_617){4936 var _61 8=this._createCorner(_617);4929 this._roundBottomCorners(e,_607,_608); 4930 } 4931 },_renderBorder:function(el,_610){ 4932 var _611="1px solid "+this._borderColor(_610); 4933 var _612="border-left: "+_611; 4934 var _613="border-right: "+_611; 4935 var _614="style='"+_612+";"+_613+"'"; 4936 el.innerHTML="<div "+_614+">"+el.innerHTML+"</div>"; 4937 },_roundTopCorners:function(el,_615,_616){ 4938 var _617=this._createCorner(_616); 4937 4939 for(var i=0;i<this.options.numSlices;i++){ 4938 _61 8.appendChild(this._createCornerSlice(_616,_617,i,"top"));4940 _617.appendChild(this._createCornerSlice(_615,_616,i,"top")); 4939 4941 } 4940 4942 el.style.paddingTop=0; 4941 el.insertBefore(_61 8,el.firstChild);4942 },_roundBottomCorners:function(el,_61 9,_620){4943 var _62 1=this._createCorner(_620);4943 el.insertBefore(_617,el.firstChild); 4944 },_roundBottomCorners:function(el,_618,_619){ 4945 var _620=this._createCorner(_619); 4944 4946 for(var i=(this.options.numSlices-1);i>=0;i--){ 4945 _62 1.appendChild(this._createCornerSlice(_619,_620,i,"bottom"));4947 _620.appendChild(this._createCornerSlice(_618,_619,i,"bottom")); 4946 4948 } 4947 4949 el.style.paddingBottom=0; 4948 el.appendChild(_62 1);4949 },_createCorner:function(_62 2){4950 el.appendChild(_620); 4951 },_createCorner:function(_621){ 4950 4952 var dom=MochiKit.DOM; 4951 return dom.DIV({style:{backgroundColor:_62 2.toString()}});4952 },_createCornerSlice:function(_62 3,_624,n,_625){4953 var _62 6=MochiKit.DOM.SPAN();4954 var _62 7=_626.style;4955 _62 7.backgroundColor=_623.toString();4956 _62 7.display="block";4957 _62 7.height="1px";4958 _62 7.overflow="hidden";4959 _62 7.fontSize="1px";4960 var _62 8=this._borderColor(_623,_624);4953 return dom.DIV({style:{backgroundColor:_621.toString()}}); 4954 },_createCornerSlice:function(_622,_623,n,_624){ 4955 var _625=MochiKit.DOM.SPAN(); 4956 var _626=_625.style; 4957 _626.backgroundColor=_622.toString(); 4958 _626.display="block"; 4959 _626.height="1px"; 4960 _626.overflow="hidden"; 4961 _626.fontSize="1px"; 4962 var _627=this._borderColor(_622,_623); 4961 4963 if(this.options.border&&n===0){ 4962 _62 7.borderTopStyle="solid";4963 _62 7.borderTopWidth="1px";4964 _62 7.borderLeftWidth="0px";4965 _62 7.borderRightWidth="0px";4966 _62 7.borderBottomWidth="0px";4967 _62 7.height="0px";4968 _62 7.borderColor=_628.toString();4969 }else{ 4970 if(_62 8){4971 _62 7.borderColor=_628.toString();4972 _62 7.borderStyle="solid";4973 _62 7.borderWidth="0px 1px";4964 _626.borderTopStyle="solid"; 4965 _626.borderTopWidth="1px"; 4966 _626.borderLeftWidth="0px"; 4967 _626.borderRightWidth="0px"; 4968 _626.borderBottomWidth="0px"; 4969 _626.height="0px"; 4970 _626.borderColor=_627.toString(); 4971 }else{ 4972 if(_627){ 4973 _626.borderColor=_627.toString(); 4974 _626.borderStyle="solid"; 4975 _626.borderWidth="0px 1px"; 4974 4976 } 4975 4977 } 4976 4978 if(!this.options.compact&&(n==(this.options.numSlices-1))){ 4977 _62 7.height="2px";4978 } 4979 this._setMargin(_62 6,n,_625);4980 this._setBorder(_62 6,n,_625);4981 return _62 6;4982 },_setOptions:function(_62 9){4979 _626.height="2px"; 4980 } 4981 this._setMargin(_625,n,_624); 4982 this._setBorder(_625,n,_624); 4983 return _625; 4984 },_setOptions:function(_628){ 4983 4985 this.options={corners:"all",color:"fromElement",bgColor:"fromParent",blend:true,border:false,compact:false,__unstable__wrapElement:false}; 4984 MochiKit.Base.update(this.options,_62 9);4986 MochiKit.Base.update(this.options,_628); 4985 4987 this.options.numSlices=(this.options.compact?2:4); 4986 4988 },_whichSideTop:function(){ 4987 var _6 30=this.options.corners;4988 if(this._hasString(_6 30,"all","top")){4989 var _629=this.options.corners; 4990 if(this._hasString(_629,"all","top")){ 4989 4991 return ""; 4990 4992 } 4991 var _63 1=(_630.indexOf("tl")!=-1);4992 var _63 2=(_630.indexOf("tr")!=-1);4993 if(_63 1&&_632){4993 var _630=(_629.indexOf("tl")!=-1); 4994 var _631=(_629.indexOf("tr")!=-1); 4995 if(_630&&_631){ 4994 4996 return ""; 4995 4997 } 4998 if(_630){ 4999 return "left"; 5000 } 4996 5001 if(_631){ 4997 return "left";4998 }4999 if(_632){5000 5002 return "right"; 5001 5003 } 5002 5004 return ""; 5003 5005 },_whichSideBottom:function(){ 5004 var _63 3=this.options.corners;5005 if(this._hasString(_63 3,"all","bottom")){5006 var _632=this.options.corners; 5007 if(this._hasString(_632,"all","bottom")){ 5006 5008 return ""; 5007 5009 } 5008 var _63 4=(_633.indexOf("bl")!=-1);5009 var _63 5=(_633.indexOf("br")!=-1);5010 if(_63 4&&_635){5010 var _633=(_632.indexOf("bl")!=-1); 5011 var _634=(_632.indexOf("br")!=-1); 5012 if(_633&&_634){ 5011 5013 return ""; 5012 5014 } 5015 if(_633){ 5016 return "left"; 5017 } 5013 5018 if(_634){ 5014 return "left";5015 }5016 if(_635){5017 5019 return "right"; 5018 5020 } 5019 5021 return ""; 5020 },_borderColor:function(_63 6,_637){5021 if(_63 6=="transparent"){5022 return _63 7;5022 },_borderColor:function(_635,_636){ 5023 if(_635=="transparent"){ 5024 return _636; 5023 5025 }else{ 5024 5026 if(this.options.border){ … … 5026 5028 }else{ 5027 5029 if(this.options.blend){ 5028 return _63 7.blendedColor(_636);5030 return _636.blendedColor(_635); 5029 5031 } 5030 5032 } 5031 5033 } 5032 5034 return ""; 5033 },_setMargin:function(el,n,_63 8){5034 var _63 9=this._marginSize(n)+"px";5035 var _6 40=(_638=="top"?this._whichSideTop():this._whichSideBottom());5036 var _64 1=el.style;5037 if(_6 40=="left"){5038 _64 1.marginLeft=_639;5039 _64 1.marginRight="0px";5040 }else{ 5041 if(_6 40=="right"){5042 _64 1.marginRight=_639;5043 _64 1.marginLeft="0px";5044 }else{ 5045 _64 1.marginLeft=_639;5046 _64 1.marginRight=_639;5047 } 5048 } 5049 },_setBorder:function(el,n,_64 2){5050 var _64 3=this._borderSize(n)+"px";5051 var _64 4=(_642=="top"?this._whichSideTop():this._whichSideBottom());5052 var _64 5=el.style;5053 if(_64 4=="left"){5054 _64 5.borderLeftWidth=_643;5055 _64 5.borderRightWidth="0px";5056 }else{ 5057 if(_64 4=="right"){5058 _64 5.borderRightWidth=_643;5059 _64 5.borderLeftWidth="0px";5060 }else{ 5061 _64 5.borderLeftWidth=_643;5062 _64 5.borderRightWidth=_643;5035 },_setMargin:function(el,n,_637){ 5036 var _638=this._marginSize(n)+"px"; 5037 var _639=(_637=="top"?this._whichSideTop():this._whichSideBottom()); 5038 var _640=el.style; 5039 if(_639=="left"){ 5040 _640.marginLeft=_638; 5041 _640.marginRight="0px"; 5042 }else{ 5043 if(_639=="right"){ 5044 _640.marginRight=_638; 5045 _640.marginLeft="0px"; 5046 }else{ 5047 _640.marginLeft=_638; 5048 _640.marginRight=_638; 5049 } 5050 } 5051 },_setBorder:function(el,n,_641){ 5052 var _642=this._borderSize(n)+"px"; 5053 var _643=(_641=="top"?this._whichSideTop():this._whichSideBottom()); 5054 var _644=el.style; 5055 if(_643=="left"){ 5056 _644.borderLeftWidth=_642; 5057 _644.borderRightWidth="0px"; 5058 }else{ 5059 if(_643=="right"){ 5060 _644.borderRightWidth=_642; 5061 _644.borderLeftWidth="0px"; 5062 }else{ 5063 _644.borderLeftWidth=_642; 5064 _644.borderRightWidth=_642; 5063 5065 } 5064 5066 } … … 5069 5071 var o=this.options; 5070 5072 if(o.compact&&o.blend){ 5071 var _646=[1,0]; 5073 var _645=[1,0]; 5074 return _645[n]; 5075 }else{ 5076 if(o.compact){ 5077 var _646=[2,1]; 5072 5078 return _646[n]; 5073 5079 }else{ 5074 if(o. compact){5075 var _647=[ 2,1];5080 if(o.blend){ 5081 var _647=[3,2,1,0]; 5076 5082 return _647[n]; 5077 5083 }else{ 5078 if(o.blend){ 5079 var _648=[3,2,1,0]; 5084 var _648=[5,3,2,1]; 5080 5085 return _648[n]; 5081 }else{5082 var _649=[5,3,2,1];5083 return _649[n];5084 5086 } 5085 5087 } … … 5087 5089 },_borderSize:function(n){ 5088 5090 var o=this.options; 5089 var _6 50;5091 var _649; 5090 5092 if(o.compact&&(o.blend||this.isTransparent)){ 5091 5093 return 1; 5092 5094 }else{ 5093 5095 if(o.compact){ 5094 _6 50=[1,0];5096 _649=[1,0]; 5095 5097 }else{ 5096 5098 if(o.blend){ 5097 _6 50=[2,1,1,1];5099 _649=[2,1,1,1]; 5098 5100 }else{ 5099 5101 if(o.border){ 5100 _6 50=[0,2,0,0];5102 _649=[0,2,0,0]; 5101 5103 }else{ 5102 5104 if(this.isTransparent){ 5103 _6 50=[5,3,2,1];5105 _649=[5,3,2,1]; 5104 5106 }else{ 5105 5107 return 0; … … 5109 5111 } 5110 5112 } 5111 return _6 50[n];5113 return _649[n]; 5112 5114 },_hasString:function(str){ 5113 5115 for(var i=1;i<arguments.length;i++){ … … 5124 5126 return (el.childNodes.length==1&&el.childNodes[0].nodeType==3); 5125 5127 }}; 5126 MochiKit.Visual.roundElement=function(e,_65 1){5127 new MochiKit.Visual._RoundCorners(e,_65 1);5128 }; 5129 MochiKit.Visual.roundClass=function(_65 2,_653,_654){5130 var _65 5=MochiKit.DOM.getElementsByTagAndClassName(_652,_653);5131 for(var i=0;i<_65 5.length;i++){5132 MochiKit.Visual.roundElement(_65 5[i],_654);5133 } 5134 }; 5135 MochiKit.Visual.tagifyText=function(_65 6,_657){5136 var _65 7=_657||"position:relative";5128 MochiKit.Visual.roundElement=function(e,_650){ 5129 new MochiKit.Visual._RoundCorners(e,_650); 5130 }; 5131 MochiKit.Visual.roundClass=function(_651,_652,_653){ 5132 var _654=MochiKit.DOM.getElementsByTagAndClassName(_651,_652); 5133 for(var i=0;i<_654.length;i++){ 5134 MochiKit.Visual.roundElement(_654[i],_653); 5135 } 5136 }; 5137 MochiKit.Visual.tagifyText=function(_655,_656){ 5138 var _656=_656||"position:relative"; 5137 5139 if(/MSIE/.test(navigator.userAgent)){ 5138 _65 7+=";zoom:1";5139 } 5140 _65 6=MochiKit.DOM.getElement(_656);5140 _656+=";zoom:1"; 5141 } 5142 _655=MochiKit.DOM.getElement(_655); 5141 5143 var ma=MochiKit.Base.map; 5144 ma(function(_658){ 5145 if(_658.nodeType==3){ 5142 5146 ma(function(_659){ 5143 if(_659.nodeType==3){ 5144 ma(function(_660){ 5145 _656.insertBefore(MochiKit.DOM.SPAN({style:_657},_660==" "?String.fromCharCode(160):_660),_659); 5146 },_659.nodeValue.split("")); 5147 MochiKit.DOM.removeElement(_659); 5148 } 5149 },_656.childNodes); 5150 }; 5151 MochiKit.Visual.forceRerendering=function(_661){ 5152 try{ 5153 _661=MochiKit.DOM.getElement(_661); 5147 _655.insertBefore(MochiKit.DOM.SPAN({style:_656},_659==" "?String.fromCharCode(160):_659),_658); 5148 },_658.nodeValue.split("")); 5149 MochiKit.DOM.removeElement(_658); 5150 } 5151 },_655.childNodes); 5152 }; 5153 MochiKit.Visual.forceRerendering=function(_660){ 5154 try{ 5155 _660=MochiKit.DOM.getElement(_660); 5154 5156 var n=document.createTextNode(" "); 5155 _66 1.appendChild(n);5156 _66 1.removeChild(n);5157 _660.appendChild(n); 5158 _660.removeChild(n); 5157 5159 } 5158 5160 catch(e){ 5159 5161 } 5160 5162 }; 5161 MochiKit.Visual.multiple=function(_66 2,_663,_664){5162 _66 4=MochiKit.Base.update({speed:0.1,delay:0},_664||{});5163 var _66 5=_664.delay;5164 var _66 6=0;5165 MochiKit.Base.map(function(_66 7){5166 _66 4.delay=_666*_664.speed+_665;5167 new _66 3(_667,_664);5168 _66 6+=1;5169 },_66 2);5163 MochiKit.Visual.multiple=function(_661,_662,_663){ 5164 _663=MochiKit.Base.update({speed:0.1,delay:0},_663||{}); 5165 var _664=_663.delay; 5166 var _665=0; 5167 MochiKit.Base.map(function(_666){ 5168 _663.delay=_665*_663.speed+_664; 5169 new _662(_666,_663); 5170 _665+=1; 5171 },_661); 5170 5172 }; 5171 5173 MochiKit.Visual.PAIRS={"slide":["slideDown","slideUp"],"blind":["blindDown","blindUp"],"appear":["appear","fade"],"size":["grow","shrink"]}; 5172 MochiKit.Visual.toggle=function(_66 8,_669,_670){5173 _66 8=MochiKit.DOM.getElement(_668);5174 _66 9=(_669||"appear").toLowerCase();5175 _6 70=MochiKit.Base.update({queue:{position:"end",scope:(_668.id||"global"),limit:1}},_670||{});5174 MochiKit.Visual.toggle=function(_667,_668,_669){ 5175 _667=MochiKit.DOM.getElement(_667); 5176 _668=(_668||"appear").toLowerCase(); 5177 _669=MochiKit.Base.update({queue:{position:"end",scope:(_667.id||"global"),limit:1}},_669||{}); 5176 5178 var v=MochiKit.Visual; 5177 v[_66 8.style.display!="none"?v.PAIRS[_669][1]:v.PAIRS[_669][0]](_668,_670);5179 v[_667.style.display!="none"?v.PAIRS[_668][1]:v.PAIRS[_668][0]](_667,_669); 5178 5180 }; 5179 5181 MochiKit.Visual.Transitions={}; … … 5208 5210 this.effects=[]; 5209 5211 this.interval=null; 5210 },add:function(_67 2){5211 var _67 3=new Date().getTime();5212 var _67 4=(typeof (_672.options.queue)=="string")?_672.options.queue:_672.options.queue.position;5212 },add:function(_671){ 5213 var _672=new Date().getTime(); 5214 var _673=(typeof (_671.options.queue)=="string")?_671.options.queue:_671.options.queue.position; 5213 5215 var ma=MochiKit.Base.map; 5214 switch(_67 4){5216 switch(_673){ 5215 5217 case "front": 5216 5218 ma(function(e){ 5217 5219 if(e.state=="idle"){ 5218 e.startOn+=_67 2.finishOn;5219 e.finishOn+=_67 2.finishOn;5220 e.startOn+=_671.finishOn; 5221 e.finishOn+=_671.finishOn; 5220 5222 } 5221 5223 },this.effects); 5222 5224 break; 5223 5225 case "end": 5224 var _67 5;5226 var _674; 5225 5227 ma(function(e){ 5226 5228 var i=e.finishOn; 5227 if(i>=(_67 5||i)){5228 _67 5=i;5229 if(i>=(_674||i)){ 5230 _674=i; 5229 5231 } 5230 5232 },this.effects); 5231 _67 3=_675||_673;5233 _672=_674||_672; 5232 5234 break; 5233 5235 case "break": … … 5237 5239 break; 5238 5240 } 5239 _67 2.startOn+=_673;5240 _67 2.finishOn+=_673;5241 if(!_67 2.options.queue.limit||this.effects.length<_672.options.queue.limit){5242 this.effects.push(_67 2);5241 _671.startOn+=_672; 5242 _671.finishOn+=_672; 5243 if(!_671.options.queue.limit||this.effects.length<_671.options.queue.limit){ 5244 this.effects.push(_671); 5243 5245 } 5244 5246 if(!this.interval){ 5245 5247 this.interval=this.startLoop(MochiKit.Base.bind(this.loop,this),40); 5246 5248 } 5247 },startLoop:function(func,_67 6){5248 return setInterval(func,_67 6);5249 },remove:function(_67 7){5249 },startLoop:function(func,_675){ 5250 return setInterval(func,_675); 5251 },remove:function(_676){ 5250 5252 this.effects=MochiKit.Base.filter(function(e){ 5251 return e!=_67 7;5253 return e!=_676; 5252 5254 },this.effects); 5253 5255 if(this.effects.length==0){ … … 5255 5257 this.interval=null; 5256 5258 } 5257 },stopLoop:function(_67 8){5258 clearInterval(_67 8);5259 },stopLoop:function(_677){ 5260 clearInterval(_677); 5259 5261 },loop:function(){ 5260 var _67 9=new Date().getTime();5261 MochiKit.Base.map(function(_6 80){5262 _6 80.loop(_679);5262 var _678=new Date().getTime(); 5263 MochiKit.Base.map(function(_679){ 5264 _679.loop(_678); 5263 5265 },this.effects); 5264 5266 }}); 5265 MochiKit.Visual.Queues={instances:{},get:function(_68 1){5266 if(typeof (_68 1)!="string"){5267 return _68 1;5268 } 5269 if(!this.instances[_68 1]){5270 this.instances[_68 1]=new MochiKit.Visual.ScopedQueue();5271 } 5272 return this.instances[_68 1];5267 MochiKit.Visual.Queues={instances:{},get:function(_680){ 5268 if(typeof (_680)!="string"){ 5269 return _680; 5270 } 5271 if(!this.instances[_680]){ 5272 this.instances[_680]=new MochiKit.Visual.ScopedQueue(); 5273 } 5274 return this.instances[_680]; 5273 5275 }}; 5274 5276 MochiKit.Visual.Queue=MochiKit.Visual.Queues.get("global"); … … 5276 5278 MochiKit.Visual.Base=function(){ 5277 5279 }; 5278 MochiKit.Visual.Base.prototype={__class__:MochiKit.Visual.Base,start:function(_68 2){5280 MochiKit.Visual.Base.prototype={__class__:MochiKit.Visual.Base,start:function(_681){ 5279 5281 var v=MochiKit.Visual; 5280 this.options=MochiKit.Base.setdefault(_68 2||{},v.DefaultOptions);5282 this.options=MochiKit.Base.setdefault(_681||{},v.DefaultOptions); 5281 5283 this.currentFrame=0; 5282 5284 this.state="idle"; … … 5287 5289 v.Queues.get(typeof (this.options.queue)=="string"?"global":this.options.queue.scope).add(this); 5288 5290 } 5289 },loop:function(_68 3){5290 if(_68 3>=this.startOn){5291 if(_68 3>=this.finishOn){5291 },loop:function(_682){ 5292 if(_682>=this.startOn){ 5293 if(_682>=this.finishOn){ 5292 5294 return this.finalize(); 5293 5295 } 5294 var pos=(_68 3-this.startOn)/(this.finishOn-this.startOn);5295 var _68 4=Math.round(pos*this.options.fps*this.options.duration);5296 if(_68 4>this.currentFrame){5296 var pos=(_682-this.startOn)/(this.finishOn-this.startOn); 5297 var _683=Math.round(pos*this.options.fps*this.options.duration); 5298 if(_683>this.currentFrame){ 5297 5299 this.render(pos); 5298 this.currentFrame=_68 4;5300 this.currentFrame=_683; 5299 5301 } 5300 5302 } … … 5329 5331 },setup:function(){ 5330 5332 },finish:function(){ 5331 },update:function(_68 5){5332 },event:function(_68 6){5333 if(this.options[_68 6+"Internal"]){5334 this.options[_68 6+"Internal"](this);5335 } 5336 if(this.options[_68 6]){5337 this.options[_68 6](this);5333 },update:function(_684){ 5334 },event:function(_685){ 5335 if(this.options[_685+"Internal"]){ 5336 this.options[_685+"Internal"](this); 5337 } 5338 if(this.options[_685]){ 5339 this.options[_685](this); 5338 5340 } 5339 5341 },repr:function(){ 5340 5342 return "["+this.__class__.NAME+", options:"+MochiKit.Base.repr(this.options)+"]"; 5341 5343 }}; 5342 MochiKit.Visual.Parallel=function(_68 7,_688){5343 this.__init__(_68 7,_688);5344 MochiKit.Visual.Parallel=function(_686,_687){ 5345 this.__init__(_686,_687); 5344 5346 }; 5345 5347 MochiKit.Visual.Parallel.prototype=new MochiKit.Visual.Base(); 5346 MochiKit.Base.update(MochiKit.Visual.Parallel.prototype,{__init__:function(_68 9,_690){5347 this.effects=_68 9||[];5348 this.start(_6 90);5349 },update:function(_69 1){5350 MochiKit.Base.map(function(_69 2){5351 _69 2.render(_691);5348 MochiKit.Base.update(MochiKit.Visual.Parallel.prototype,{__init__:function(_688,_689){ 5349 this.effects=_688||[]; 5350 this.start(_689); 5351 },update:function(_690){ 5352 MochiKit.Base.map(function(_691){ 5353 _691.render(_690); 5352 5354 },this.effects); 5353 5355 },finish:function(){ 5354 MochiKit.Base.map(function(_69 3){5355 _69 3.finalize();5356 MochiKit.Base.map(function(_692){ 5357 _692.finalize(); 5356 5358 },this.effects); 5357 5359 }}); 5358 MochiKit.Visual.Opacity=function(_69 4,_695){5359 this.__init__(_69 4,_695);5360 MochiKit.Visual.Opacity=function(_693,_694){ 5361 this.__init__(_693,_694); 5360 5362 }; 5361 5363 MochiKit.Visual.Opacity.prototype=new MochiKit.Visual.Base(); 5362 MochiKit.Base.update(MochiKit.Visual.Opacity.prototype,{__init__:function(_69 6,_697){5364 MochiKit.Base.update(MochiKit.Visual.Opacity.prototype,{__init__:function(_695,_696){ 5363 5365 var b=MochiKit.Base; 5364 5366 var s=MochiKit.Style; 5365 this.element=MochiKit.DOM.getElement(_69 6);5367 this.element=MochiKit.DOM.getElement(_695); 5366 5368 if(this.element.currentStyle&&(!this.element.currentStyle.hasLayout)){ 5367 5369 s.setStyle(this.element,{zoom:1}); 5368 5370 } 5369 _69 7=b.update({from:s.getOpacity(this.element)||0,to:1},_697||{});5370 this.start(_69 7);5371 },update:function(_69 8){5372 MochiKit.Style.setOpacity(this.element,_69 8);5371 _696=b.update({from:s.getOpacity(this.element)||0,to:1},_696||{}); 5372 this.start(_696); 5373 },update:function(_697){ 5374 MochiKit.Style.setOpacity(this.element,_697); 5373 5375 }}); 5374 MochiKit.Visual.Move=function(_69 9,_700){5375 this.__init__(_69 9,_700);5376 MochiKit.Visual.Move=function(_698,_699){ 5377 this.__init__(_698,_699); 5376 5378 }; 5377 5379 MochiKit.Visual.Move.prototype=new MochiKit.Visual.Base(); 5378 MochiKit.Base.update(MochiKit.Visual.Move.prototype,{__init__:function(_70 1,_702){5379 this.element=MochiKit.DOM.getElement(_70 1);5380 _70 2=MochiKit.Base.update({x:0,y:0,mode:"relative"},_702||{});5381 this.start(_70 2);5380 MochiKit.Base.update(MochiKit.Visual.Move.prototype,{__init__:function(_700,_701){ 5381 this.element=MochiKit.DOM.getElement(_700); 5382 _701=MochiKit.Base.update({x:0,y:0,mode:"relative"},_701||{}); 5383 this.start(_701); 5382 5384 },setup:function(){ 5383 5385 MochiKit.DOM.makePositioned(this.element); 5384 5386 var s=this.element.style; 5385 var _70 3=s.visibility;5386 var _70 4=s.display;5387 if(_70 4=="none"){5387 var _702=s.visibility; 5388 var _703=s.display; 5389 if(_703=="none"){ 5388 5390 s.visibility="hidden"; 5389 5391 s.display=""; … … 5395 5397 this.options.y-=this.originalTop; 5396 5398 } 5397 if(_70 4=="none"){5398 s.visibility=_70 3;5399 s.display=_70 4;5400 } 5401 },update:function(_70 5){5402 MochiKit.Style.setStyle(this.element,{left:Math.round(this.options.x*_70 5+this.originalLeft)+"px",top:Math.round(this.options.y*_705+this.originalTop)+"px"});5399 if(_703=="none"){ 5400 s.visibility=_702; 5401 s.display=_703; 5402 } 5403 },update:function(_704){ 5404 MochiKit.Style.setStyle(this.element,{left:Math.round(this.options.x*_704+this.originalLeft)+"px",top:Math.round(this.options.y*_704+this.originalTop)+"px"}); 5403 5405 }}); 5404 MochiKit.Visual.Scale=function(_70 6,_707,_708){5405 this.__init__(_70 6,_707,_708);5406 MochiKit.Visual.Scale=function(_705,_706,_707){ 5407 this.__init__(_705,_706,_707); 5406 5408 }; 5407 5409 MochiKit.Visual.Scale.prototype=new MochiKit.Visual.Base(); 5408 MochiKit.Base.update(MochiKit.Visual.Scale.prototype,{__init__:function(_70 9,_710,_711){5409 this.element=MochiKit.DOM.getElement(_70 9);5410 _71 1=MochiKit.Base.update({scaleX:true,scaleY:true,scaleContent:true,scaleFromCenter:false,scaleMode:"box",scaleFrom:100,scaleTo:_710},_711||{});5411 this.start(_71 1);5410 MochiKit.Base.update(MochiKit.Visual.Scale.prototype,{__init__:function(_708,_709,_710){ 5411 this.element=MochiKit.DOM.getElement(_708); 5412 _710=MochiKit.Base.update({scaleX:true,scaleY:true,scaleContent:true,scaleFromCenter:false,scaleMode:"box",scaleFrom:100,scaleTo:_709},_710||{}); 5413 this.start(_710); 5412 5414 },setup:function(){ 5413 5415 this.restoreAfterFinish=this.options.restoreAfterFinish||false; … … 5421 5423 this.originalTop=this.element.offsetTop; 5422 5424 this.originalLeft=this.element.offsetLeft; 5423 var _71 2=MochiKit.Style.getStyle(this.element,"font-size")||"100%";5424 ma(b(function(_71 3){5425 if(_71 2.indexOf(_713)>0){5426 this.fontSize=parseFloat(_71 2);5427 this.fontSizeType=_71 3;5425 var _711=MochiKit.Style.getStyle(this.element,"font-size")||"100%"; 5426 ma(b(function(_712){ 5427 if(_711.indexOf(_712)>0){ 5428 this.fontSize=parseFloat(_711); 5429 this.fontSizeType=_712; 5428 5430 } 5429 5431 },this),["em","px","%"]); … … 5438 5440 } 5439 5441 } 5440 },update:function(_71 4){5441 var _71 5=(this.options.scaleFrom/100)+(this.factor*_714);5442 },update:function(_713){ 5443 var _714=(this.options.scaleFrom/100)+(this.factor*_713); 5442 5444 if(this.options.scaleContent&&this.fontSize){ 5443 MochiKit.Style.setStyle(this.element,{fontSize:this.fontSize*_71 5+this.fontSizeType});5444 } 5445 this.setDimensions(this.dims[0]*_71 5,this.dims[1]*_715);5445 MochiKit.Style.setStyle(this.element,{fontSize:this.fontSize*_714+this.fontSizeType}); 5446 } 5447 this.setDimensions(this.dims[0]*_714,this.dims[1]*_714); 5446 5448 },finish:function(){ 5447 5449 if(this.restoreAfterFinish){ 5448 5450 MochiKit.Style.setStyle(this.element,this.originalStyle); 5449 5451 } 5450 },setDimensions:function(_71 6,_717){5452 },setDimensions:function(_715,_716){ 5451 5453 var d={}; 5452 5454 var r=Math.round; … … 5455 5457 } 5456 5458 if(this.options.scaleX){ 5457 d.width=r(_71 7)+"px";5459 d.width=r(_716)+"px"; 5458 5460 } 5459 5461 if(this.options.scaleY){ 5460 d.height=r(_71 6)+"px";5462 d.height=r(_715)+"px"; 5461 5463 } 5462 5464 if(this.options.scaleFromCenter){ 5463 var topd=(_71 6-this.dims[0])/2;5464 var _71 9=(_717-this.dims[1])/2;5465 var topd=(_715-this.dims[0])/2; 5466 var _718=(_716-this.dims[1])/2; 5465 5467 if(this.elementPositioning=="absolute"){ 5466 5468 if(this.options.scaleY){ … … 5468 5470 } 5469 5471 if(this.options.scaleX){ 5470 d.left=this.originalLeft-_71 9+"px";5472 d.left=this.originalLeft-_718+"px"; 5471 5473 } 5472 5474 }else{ … … 5475 5477 } 5476 5478 if(this.options.scaleX){ 5477 d.left=-_71 9+"px";5479 d.left=-_718+"px"; 5478 5480 } 5479 5481 } … … 5481 5483 MochiKit.Style.setStyle(this.element,d); 5482 5484 }}); 5483 MochiKit.Visual.Highlight=function(_7 20,_721){5484 this.__init__(_7 20,_721);5485 MochiKit.Visual.Highlight=function(_719,_720){ 5486 this.__init__(_719,_720); 5485 5487 }; 5486 5488 MochiKit.Visual.Highlight.prototype=new MochiKit.Visual.Base(); 5487 MochiKit.Base.update(MochiKit.Visual.Highlight.prototype,{__init__:function(_72 2,_723){5488 this.element=MochiKit.DOM.getElement(_72 2);5489 _72 3=MochiKit.Base.update({startcolor:"#ffff99"},_723||{});5490 this.start(_72 3);5489 MochiKit.Base.update(MochiKit.Visual.Highlight.prototype,{__init__:function(_721,_722){ 5490 this.element=MochiKit.DOM.getElement(_721); 5491 _722=MochiKit.Base.update({startcolor:"#ffff99"},_722||{}); 5492 this.start(_722); 5491 5493 },setup:function(){ 5492 5494 var b=MochiKit.Base; … … 5510 5512 return parseInt(this.options.endcolor.slice(i*2+1,i*2+3),16)-this._base[i]; 5511 5513 },this),[0,1,2]); 5512 },update:function(_72 4){5514 },update:function(_723){ 5513 5515 var m="#"; 5514 5516 MochiKit.Base.map(MochiKit.Base.bind(function(i){ 5515 m+=MochiKit.Color.toColorPart(Math.round(this._base[i]+this._delta[i]*_72 4));5517 m+=MochiKit.Color.toColorPart(Math.round(this._base[i]+this._delta[i]*_723)); 5516 5518 },this),[0,1,2]); 5517 5519 MochiKit.Style.setStyle(this.element,{backgroundColor:m}); … … 5519 5521 MochiKit.Style.setStyle(this.element,MochiKit.Base.update(this.oldStyle,{backgroundColor:this.options.restorecolor})); 5520 5522 }}); 5521 MochiKit.Visual.ScrollTo=function(_72 5,_726){5522 this.__init__(_72 5,_726);5523 MochiKit.Visual.ScrollTo=function(_724,_725){ 5524 this.__init__(_724,_725); 5523 5525 }; 5524 5526 MochiKit.Visual.ScrollTo.prototype=new MochiKit.Visual.Base(); 5525 MochiKit.Base.update(MochiKit.Visual.ScrollTo.prototype,{__init__:function(_72 7,_728){5526 this.element=MochiKit.DOM.getElement(_72 7);5527 this.start(_72 8||{});5527 MochiKit.Base.update(MochiKit.Visual.ScrollTo.prototype,{__init__:function(_726,_727){ 5528 this.element=MochiKit.DOM.getElement(_726); 5529 this.start(_727||{}); 5528 5530 },setup:function(){ 5529 5531 var p=MochiKit.Position; 5530 5532 p.prepare(); 5531 var _72 9=p.cumulativeOffset(this.element);5533 var _728=p.cumulativeOffset(this.element); 5532 5534 if(this.options.offset){ 5533 _72 9.y+=this.options.offset;5535 _728.y+=this.options.offset; 5534 5536 } 5535 5537 var max; … … 5546 5548 } 5547 5549 this.scrollStart=p.windowOffset.y; 5548 this.delta=(_72 9.y>max?max:_729.y)-this.scrollStart;5549 },update:function(_7 30){5550 this.delta=(_728.y>max?max:_728.y)-this.scrollStart; 5551 },update:function(_729){ 5550 5552 var p=MochiKit.Position; 5551 5553 p.prepare(); 5552 window.scrollTo(p.windowOffset.x,this.scrollStart+(_7 30*this.delta));5554 window.scrollTo(p.windowOffset.x,this.scrollStart+(_729*this.delta)); 5553 5555 }}); 5554 MochiKit.Visual.fade=function(_73 1,_732){5556 MochiKit.Visual.fade=function(_730,_731){ 5555 5557 var s=MochiKit.Style; 5556 var _73 3=MochiKit.DOM.getElement(_731).style.opacity||"";5557 _73 2=MochiKit.Base.update({from:s.getOpacity(_731)||1,to:0,afterFinishInternal:function(_734){5558 if(_73 4.options.to!==0){5558 var _732=MochiKit.DOM.getElement(_730).style.opacity||""; 5559 _731=MochiKit.Base.update({from:s.getOpacity(_730)||1,to:0,afterFinishInternal:function(_733){ 5560 if(_733.options.to!==0){ 5559 5561 return; 5560 5562 } 5561 s.hideElement(_73 4.element);5562 s.setStyle(_73 4.element,{opacity:_733});5563 }},_73 2||{});5564 return new MochiKit.Visual.Opacity(_73 1,_732);5565 }; 5566 MochiKit.Visual.appear=function(_73 5,_736){5563 s.hideElement(_733.element); 5564 s.setStyle(_733.element,{opacity:_732}); 5565 }},_731||{}); 5566 return new MochiKit.Visual.Opacity(_730,_731); 5567 }; 5568 MochiKit.Visual.appear=function(_734,_735){ 5567 5569 var s=MochiKit.Style; 5568 5570 var v=MochiKit.Visual; 5569 _73 6=MochiKit.Base.update({from:(s.getStyle(_735,"display")=="none"?0:s.getOpacity(_735)||0),to:1,afterFinishInternal:function(_737){5570 v.forceRerendering(_73 7.element);5571 },beforeSetupInternal:function(_73 8){5572 s.setOpacity(_73 8.element,_738.options.from);5573 s.showElement(_73 8.element);5574 }},_73 6||{});5575 return new v.Opacity(_73 5,_736);5576 }; 5577 MochiKit.Visual.puff=function(_73 9,_740){5571 _735=MochiKit.Base.update({from:(s.getStyle(_734,"display")=="none"?0:s.getOpacity(_734)||0),to:1,afterFinishInternal:function(_736){ 5572 v.forceRerendering(_736.element); 5573 },beforeSetupInternal:function(_737){ 5574 s.setOpacity(_737.element,_737.options.from); 5575 s.showElement(_737.element); 5576 }},_735||{}); 5577 return new v.Opacity(_734,_735); 5578 }; 5579 MochiKit.Visual.puff=function(_738,_739){ 5578 5580 var s=MochiKit.Style; 5579 5581 var v=MochiKit.Visual; 5580 _73 9=MochiKit.DOM.getElement(_739);5581 var _74 1={opacity:_739.style.opacity||"",position:s.getStyle(_739,"position"),top:_739.style.top,left:_739.style.left,width:_739.style.width,height:_739.style.height};5582 _7 40=MochiKit.Base.update({beforeSetupInternal:function(_742){5583 MochiKit.Position.absolutize(_74 2.effects[0].element);5584 },afterFinishInternal:function(_74 3){5585 s.hideElement(_74 3.effects[0].element);5586 s.setStyle(_74 3.effects[0].element,_741);5587 }},_7 40||{});5588 return new v.Parallel([new v.Scale(_73 9,200,{sync:true,scaleFromCenter:true,scaleContent:true,restoreAfterFinish:true}),new v.Opacity(_739,{sync:true,to:0})],_740);5589 }; 5590 MochiKit.Visual.blindUp=function(_74 4,_745){5582 _738=MochiKit.DOM.getElement(_738); 5583 var _740={opacity:_738.style.opacity||"",position:s.getStyle(_738,"position"),top:_738.style.top,left:_738.style.left,width:_738.style.width,height:_738.style.height}; 5584 _739=MochiKit.Base.update({beforeSetupInternal:function(_741){ 5585 MochiKit.Position.absolutize(_741.effects[0].element); 5586 },afterFinishInternal:function(_742){ 5587 s.hideElement(_742.effects[0].element); 5588 s.setStyle(_742.effects[0].element,_740); 5589 }},_739||{}); 5590 return new v.Parallel([new v.Scale(_738,200,{sync:true,scaleFromCenter:true,scaleContent:true,restoreAfterFinish:true}),new v.Opacity(_738,{sync:true,to:0})],_739); 5591 }; 5592 MochiKit.Visual.blindUp=function(_743,_744){ 5591 5593 var d=MochiKit.DOM; 5592 _74 4=d.getElement(_744);5593 var _74 6=d.makeClipping(_744);5594 _74 5=MochiKit.Base.update({scaleContent:false,scaleX:false,restoreAfterFinish:true,afterFinishInternal:function(_747){5595 MochiKit.Style.hideElement(_74 7.element);5596 d.undoClipping(_74 7.element,_746);5597 }},_74 5||{});5598 return new MochiKit.Visual.Scale(_74 4,0,_745);5599 }; 5600 MochiKit.Visual.blindDown=function(_74 8,_749){5594 _743=d.getElement(_743); 5595 var _745=d.makeClipping(_743); 5596 _744=MochiKit.Base.update({scaleContent:false,scaleX:false,restoreAfterFinish:true,afterFinishInternal:function(_746){ 5597 MochiKit.Style.hideElement(_746.element); 5598 d.undoClipping(_746.element,_745); 5599 }},_744||{}); 5600 return new MochiKit.Visual.Scale(_743,0,_744); 5601 }; 5602 MochiKit.Visual.blindDown=function(_747,_748){ 5601 5603 var d=MochiKit.DOM; 5602 5604 var s=MochiKit.Style; 5603 _74 8=d.getElement(_748);5604 var _7 50=s.getElementDimensions(_748);5605 var _75 1;5606 _74 9=MochiKit.Base.update({scaleContent:false,scaleX:false,scaleFrom:0,scaleMode:{originalHeight:_750.h,originalWidth:_750.w},restoreAfterFinish:true,afterSetupInternal:function(_752){5607 _75 1=d.makeClipping(_752.element);5608 s.setStyle(_75 2.element,{height:"0px"});5609 s.showElement(_75 2.element);5610 },afterFinishInternal:function(_75 3){5611 d.undoClipping(_75 3.element,_751);5612 }},_74 9||{});5613 return new MochiKit.Visual.Scale(_74 8,100,_749);5614 }; 5615 MochiKit.Visual.switchOff=function(_75 4,_755){5605 _747=d.getElement(_747); 5606 var _749=s.getElementDimensions(_747); 5607 var _750; 5608 _748=MochiKit.Base.update({scaleContent:false,scaleX:false,scaleFrom:0,scaleMode:{originalHeight:_749.h,originalWidth:_749.w},restoreAfterFinish:true,afterSetupInternal:function(_751){ 5609 _750=d.makeClipping(_751.element); 5610 s.setStyle(_751.element,{height:"0px"}); 5611 s.showElement(_751.element); 5612 },afterF
