X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/d41dc04ad17d1d9125fb2cf72db2b4782dbe3a8c..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/adapter/prototype/ext-prototype-adapter.js diff --git a/adapter/prototype/ext-prototype-adapter.js b/adapter/prototype/ext-prototype-adapter.js deleted file mode 100644 index dee6a7e9..00000000 --- a/adapter/prototype/ext-prototype-adapter.js +++ /dev/null @@ -1 +0,0 @@ -Ext={version:"2.2.1"};window["undefined"]=window["undefined"];Ext.apply=function(d,e,b){if(b){Ext.apply(d,b)}if(d&&e&&typeof e=="object"){for(var a in e){d[a]=e[a]}}return d};(function(){var idSeed=0;var ua=navigator.userAgent.toLowerCase();var isStrict=document.compatMode=="CSS1Compat",isOpera=ua.indexOf("opera")>-1,isChrome=ua.indexOf("chrome")>-1,isSafari=!isChrome&&(/webkit|khtml/).test(ua),isSafari3=isSafari&&ua.indexOf("webkit/5")!=-1,isIE=!isOpera&&ua.indexOf("msie")>-1,isIE7=!isOpera&&ua.indexOf("msie 7")>-1,isIE8=!isOpera&&ua.indexOf("msie 8")>-1,isGecko=!isSafari&&!isChrome&&ua.indexOf("gecko")>-1,isGecko3=isGecko&&ua.indexOf("rv:1.9")>-1,isBorderBox=isIE&&!isStrict,isWindows=(ua.indexOf("windows")!=-1||ua.indexOf("win32")!=-1),isMac=(ua.indexOf("macintosh")!=-1||ua.indexOf("mac os x")!=-1),isAir=(ua.indexOf("adobeair")!=-1),isLinux=(ua.indexOf("linux")!=-1),isSecure=window.location.href.toLowerCase().indexOf("https")===0;if(isIE&&!isIE7){try{document.execCommand("BackgroundImageCache",false,true)}catch(e){}}Ext.apply(Ext,{isStrict:isStrict,isSecure:isSecure,isReady:false,enableGarbageCollector:true,enableListenerCollection:false,SSL_SECURE_URL:"javascript:false",BLANK_IMAGE_URL:"http://extjs.com/s.gif",emptyFn:function(){},applyIf:function(o,c){if(o&&c){for(var p in c){if(typeof o[p]=="undefined"){o[p]=c[p]}}}return o},addBehaviors:function(o){if(!Ext.isReady){Ext.onReady(function(){Ext.addBehaviors(o)});return}var cache={};for(var b in o){var parts=b.split("@");if(parts[1]){var s=parts[0];if(!cache[s]){cache[s]=Ext.select(s)}cache[s].on(parts[1],o[b])}}cache=null},id:function(el,prefix){prefix=prefix||"ext-gen";el=Ext.getDom(el);var id=prefix+(++idSeed);return el?(el.id?el.id:(el.id=id)):id},extend:function(){var io=function(o){for(var m in o){this[m]=o[m]}};var oc=Object.prototype.constructor;return function(sb,sp,overrides){if(typeof sp=="object"){overrides=sp;sp=sb;sb=overrides.constructor!=oc?overrides.constructor:function(){sp.apply(this,arguments)}}var F=function(){},sbp,spp=sp.prototype;F.prototype=spp;sbp=sb.prototype=new F();sbp.constructor=sb;sb.superclass=spp;if(spp.constructor==oc){spp.constructor=sp}sb.override=function(o){Ext.override(sb,o)};sbp.override=io;Ext.override(sb,overrides);sb.extend=function(o){Ext.extend(sb,o)};return sb}}(),override:function(origclass,overrides){if(overrides){var p=origclass.prototype;for(var method in overrides){p[method]=overrides[method]}if(Ext.isIE&&overrides.toString!=origclass.toString){p.toString=overrides.toString}}},namespace:function(){var a=arguments,o=null,i,j,d,rt;for(i=0;i10000){clearInterval(h)}var f=document.getElementById(j);if(f){clearInterval(h);e.call(d||window,f)}};h=setInterval(g,50)}};Ext.lib.Ajax=function(){var e=function(f){return f.success?function(g){f.success.call(f.scope||window,{responseText:g.responseText,responseXML:g.responseXML,argument:f.argument})}:Ext.emptyFn};var d=function(f){return f.failure?function(g){f.failure.call(f.scope||window,{responseText:g.responseText,responseXML:g.responseXML,argument:f.argument})}:Ext.emptyFn};return{request:function(l,i,f,j,g){var k={method:l,parameters:j||"",timeout:f.timeout,onSuccess:e(f),onFailure:d(f)};if(g){var h=g.headers;if(h){k.requestHeaders=h}if(g.xmlData){l=(l?l:(g.method?g.method:"POST"));if(!h||!h["Content-Type"]){k.contentType="text/xml"}k.postBody=g.xmlData;delete k.parameters}if(g.jsonData){l=(l?l:(g.method?g.method:"POST"));if(!h||!h["Content-Type"]){k.contentType="application/json"}k.postBody=typeof g.jsonData=="object"?Ext.encode(g.jsonData):g.jsonData;delete k.parameters}}new Ajax.Request(i,k)},formRequest:function(j,i,g,k,f,h){new Ajax.Request(i,{method:Ext.getDom(j).method||"POST",parameters:Form.serialize(j)+(k?"&"+k:""),timeout:g.timeout,onSuccess:e(g),onFailure:d(g)})},isCallInProgress:function(f){return false},abort:function(f){return false},serializeForm:function(f){return Form.serialize(f.dom||f)}}}();Ext.lib.Anim=function(){var d={easeOut:function(f){return 1-Math.pow(1-f,2)},easeIn:function(f){return 1-Math.pow(1-f,2)}};var e=function(f,g){return{stop:function(h){this.effect.cancel()},isAnimated:function(){return this.effect.state=="running"},proxyCallback:function(){Ext.callback(f,g)}}};return{scroll:function(i,g,k,l,f,h){var j=e(f,h);i=Ext.getDom(i);if(typeof g.scroll.to[0]=="number"){i.scrollLeft=g.scroll.to[0]}if(typeof g.scroll.to[1]=="number"){i.scrollTop=g.scroll.to[1]}j.proxyCallback();return j},motion:function(i,g,j,k,f,h){return this.run(i,g,j,k,f,h)},color:function(i,g,j,k,f,h){return this.run(i,g,j,k,f,h)},run:function(g,q,l,p,h,s,r){var f={};for(var j in q){switch(j){case"points":var n,u,m=Ext.fly(g,"_animrun");m.position();if(n=q.points.by){var t=m.getXY();u=m.translatePoints([t[0]+n[0],t[1]+n[1]])}else{u=m.translatePoints(q.points.to)}f.left=u.left+"px";f.top=u.top+"px";break;case"width":f.width=q.width.to+"px";break;case"height":f.height=q.height.to+"px";break;case"opacity":f.opacity=String(q.opacity.to);break;default:f[j]=String(q[j].to);break}}var i=e(h,s);i.effect=new Effect.Morph(Ext.id(g),{duration:l,afterFinish:i.proxyCallback,transition:d[p]||Effect.Transitions.linear,style:f});return i}}}();function c(d){if(!b){b=new Ext.Element.Flyweight()}b.dom=d;return b}Ext.lib.Region=function(f,g,d,e){this.top=f;this[1]=f;this.right=g;this.bottom=d;this.left=e;this[0]=e};Ext.lib.Region.prototype={contains:function(d){return(d.left>=this.left&&d.right<=this.right&&d.top>=this.top&&d.bottom<=this.bottom)},getArea:function(){return((this.bottom-this.top)*(this.right-this.left))},intersect:function(h){var f=Math.max(this.top,h.top);var g=Math.min(this.right,h.right);var d=Math.min(this.bottom,h.bottom);var e=Math.max(this.left,h.left);if(d>=f&&g>=e){return new Ext.lib.Region(f,g,d,e)}else{return null}},union:function(h){var f=Math.min(this.top,h.top);var g=Math.max(this.right,h.right);var d=Math.max(this.bottom,h.bottom);var e=Math.min(this.left,h.left);return new Ext.lib.Region(f,g,d,e)},constrainTo:function(d){this.top=this.top.constrain(d.top,d.bottom);this.bottom=this.bottom.constrain(d.top,d.bottom);this.left=this.left.constrain(d.left,d.right);this.right=this.right.constrain(d.left,d.right);return this},adjust:function(f,e,d,g){this.top+=f;this.left+=e;this.right+=g;this.bottom+=d;return this}};Ext.lib.Region.getRegion=function(g){var i=Ext.lib.Dom.getXY(g);var f=i[1];var h=i[0]+g.offsetWidth;var d=i[1]+g.offsetHeight;var e=i[0];return new Ext.lib.Region(f,h,d,e)};Ext.lib.Point=function(d,e){if(Ext.isArray(d)){e=d[1];d=d[0]}this.x=this.right=this.left=this[0]=d;this.y=this.top=this.bottom=this[1]=e};Ext.lib.Point.prototype=new Ext.lib.Region();if(Ext.isIE){function a(){var d=Function.prototype;delete d.createSequence;delete d.defer;delete d.createDelegate;delete d.createCallback;delete d.createInterceptor;window.detachEvent("onunload",a)}window.attachEvent("onunload",a)}})(); \ No newline at end of file