From e5459eda49b302fa4d7160a4193f3e55df744920 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Sat, 18 Apr 2009 14:52:13 +0000 Subject: [PATCH] move mootools-bridge.js to mootools-bridge-debug.js and create the yuicompressed mootools-bridge.js --- deluge/ui/web/js/mootools-bridge-debug.js | 364 +++++++++++++++++++++ deluge/ui/web/js/mootools-bridge.js | 365 +--------------------- 2 files changed, 365 insertions(+), 364 deletions(-) create mode 100644 deluge/ui/web/js/mootools-bridge-debug.js diff --git a/deluge/ui/web/js/mootools-bridge-debug.js b/deluge/ui/web/js/mootools-bridge-debug.js new file mode 100644 index 000000000..59b0afb65 --- /dev/null +++ b/deluge/ui/web/js/mootools-bridge-debug.js @@ -0,0 +1,364 @@ +/* + * Mootools Ext Adapter + * Author: christoph.pojer@gmail.com - http://og5.net/christoph + * Last Update: 6 April 2008 + * Version: 0.9a + * + * Requires: + * Core, Browser, Array, Function, Number, String, Hash, Event, Class, + * Class.Extras, Element, Element.Event, Element.Style, Element.Dimensions, + * DomReady, Fx, Fx.CSS, Fx.Morph, Fx.Transitions, Request, Fx.Scroll + * + */ + +(function(){ + +Ext.lib.Dom = { + getViewWidth : function(full) { + return document['get'+(full ? 'Scroll' : '')+'Width'](); + }, + + getViewHeight : function(full) { + return document['get'+(full ? 'Scroll' : '')+'Height'](); + }, + + getDocumentHeight: function() { + return document.getScrollHeight(); + }, + + getDocumentWidth: function() { + return document.getScrollWidth(); + }, + + getViewportHeight: function() { + return document.getHeight(); + }, + + getViewportWidth: function() { + return document.getWidth(); + }, + + isAncestor : function(p, c){ + return $(p).hasChild(c); + }, + + getRegion : function(el){ + return Ext.lib.Region.getRegion(el); + }, + + getY : function(el){ + return $(el).getTop(); + }, + + getX : function(el){ + return $(el).getLeft(); + }, + + getXY : function(el){ + return Hash.getValues($(el).getPosition()); + }, + + setXY : function(el, xy){ + var pts = Ext.get(el).translatePoints(xy); + Hash.each(pts, function(v, i){ + if(!v) return; + $(el).setStyle(i, v+'px'); + }); + }, + + setX : function(el, x){ + this.setXY(el, [x, false]); + }, + + setY : function(el, y){ + this.setXY(el, [false, y]); + } +}; +function getElement(el){ + if($type(el)=='object') return new Document(el); + + return $(el); +} +Ext.lib.Event = { + getPageX : function(e){ + return new Event(e.browserEvent || e).page.x; + }, + + getPageY : function(e){ + return new Event(e.browserEvent || e).page.y; + }, + + getXY : function(e){ + var p = new Event(e.browserEvent || e).page; + return p ? [p.x, p.y] : [0, 0]; + }, + + getTarget : function(e){ + return new Event(e.browserEvent || e).target; + }, + + resolveTextNode: function(node) { + return node && 3 == node.nodeType ? node.parentNode : node; + }, + + getRelatedTarget: function(e) { + return new Event(e.browserEvent || e).relatedTarget; + }, + + on: function(el, e, fn){ + el = getElement(el); + if(el) el.addListener(e, fn); + }, + + un: function(el, e, fn){ + el = getElement(el); + if(el) el.removeListener(e, fn); + }, + + purgeElement: function(el){ + el = getElement(el); + if(el) el.removeEvents(); + }, + + preventDefault: function(e){ + new Event(e.browserEvent || e).preventDefault(); + }, + + stopPropagation: function(e){ + new Event(e.browserEvent || e).stopPropagation(); + }, + + stopEvent: function(e){ + new Event(e.browserEvent || e).stop(); + }, + + onAvailable: function(id, fn, scope){ + if(Browser.loaded) fn.call(scope || window, $(id)); + else document.addEvent('domready', fn); + } +}; + +Ext.lib.Ajax = function(){ + var createSuccess = function(cb){ + return cb.success ? function(text, xml){ + cb.success.call(cb.scope||window, { + responseText: text, + responseXML : xml, + argument: cb.argument + }); + } : Ext.emptyFn; + }; + var createFailure = function(cb){ + return cb.failure ? function(text, xml){ + cb.failure.call(cb.scope||window, { + responseText: text, + responseXML : xml, + argument: cb.argument + }); + } : Ext.emptyFn; + }; + return { + request: function(method, uri, cb, data, options){ + var o = { + url: uri, + method: method.toLowerCase(), + data: data || '', + /*timeout: cb.timeout,*/ + onSuccess: createSuccess(cb), + onFailure: createFailure(cb) + }; + if(options){ + if(options.headers) + o.headers = options.headers; + + if(options.xmlData){ + o.method = 'post'; + o.headers = {'Content-type': 'text/xml'}; + o.data = options.xmlData; + } + if(options.jsonData){ + o.method = 'post'; + o.headers = {'Content-type': 'text/javascript'}; + o.data = typeof options.jsonData == 'object' ? Ext.encode(options.jsonData) : options.jsonData; + } + } + new Request(o).send(); + }, + + formRequest: function(form, uri, cb, data, isUpload, sslUri){ + new Request({ + url: uri, + method: (Ext.getDom(form).method || 'post').toLowerCase(), + data: $(form).toQueryString()+(data?'&'+data:''), + /*timeout: cb.timeout,*/ + onSuccess: createSuccess(cb), + onFailure: createFailure(cb) + }).send(); + }, + + isCallInProgress: function(trans){ + //still need a way to access the request object. + return false; + }, + + abort: function(trans){ + //like above + return false; + }, + + serializeForm: function(form){ + return $(form.dom || form).toQueryString(); + } + }; +}(); + + +Ext.lib.Anim = function(){ + + var createAnim = function(cb, scope){ + return { + stop : function(skipToLast){ + this.effect.pause(); + }, + + isAnimated : function(){ + return !!this.effect.timer; + }, + + proxyCallback : function(){ + Ext.callback(cb, scope); + } + }; + }; + var transition = function(t){ + if(!Fx.Transitions[t]) t = 'linear'; + return Fx.Transitions[t]; + }; + var obj = { + scroll : function(el, args, duration, easing, cb, scope){ + var anim = createAnim(cb, scope); + anim.effect = new Fx.Scroll(el, { + duration: duration * 1000, + transisions: transition(easing), + onComplete: anim.proxyCallback + }).start(args); + return anim; + }, + + run : function(el, args, duration, easing, cb, scope, type){ + if(easing=='easeNone') easing = 'linear'; + var anim = createAnim(cb, scope); + var style = {}; + for(i in args){ + if(i=='points'){ + var by, p, e = Ext.fly(el, '_animrun'); + e.position(); + if(by = args[i].by){ + var xy = e.getXY(); + p = e.translatePoints([xy[0]+by[0], xy[1]+by[1]]); + }else{ + p = e.translatePoints(args[i].to); + } + style.left = p.left; + style.top = p.top; + }else{ + style[i] = args[i].from ? [args[i].from, args[i].to] : [args[i].to]; + } + } + anim.effect = new Fx.Morph(el, { + duration: duration * 1000, + transition: transition(easing), + onComplete: anim.proxyCallback + }).start(style); + return anim; + } + }; + + return Hash.extend(obj, { + motion: obj.run, + color: obj.run + }); +}(); + +Ext.lib.Region = function(t, r, b, l) { + this.top = t; + this[1] = t; + this.right = r; + this.bottom = b; + this.left = l; + this[0] = l; +}; + +Ext.lib.Region.prototype = { + contains : function(region) { + return ( region.left >= this.left && + region.right <= this.right && + region.top >= this.top && + region.bottom <= this.bottom ); + + }, + + getArea : function() { + return ( (this.bottom - this.top) * (this.right - this.left) ); + }, + + intersect : function(region) { + var t = Math.max( this.top, region.top ); + var r = Math.min( this.right, region.right ); + var b = Math.min( this.bottom, region.bottom ); + var l = Math.max( this.left, region.left ); + + if (b >= t && r >= l) { + return new Ext.lib.Region(t, r, b, l); + } else { + return null; + } + }, + union : function(region) { + var t = Math.min( this.top, region.top ); + var r = Math.max( this.right, region.right ); + var b = Math.max( this.bottom, region.bottom ); + var l = Math.min( this.left, region.left ); + + return new Ext.lib.Region(t, r, b, l); + }, + + constrainTo : function(r) { + this.top = this.top.constrain(r.top, r.bottom); + this.bottom = this.bottom.constrain(r.top, r.bottom); + this.left = this.left.constrain(r.left, r.right); + this.right = this.right.constrain(r.left, r.right); + return this; + }, + + adjust : function(t, l, b, r){ + this.top += t; + this.left += l; + this.right += r; + this.bottom += b; + return this; + } +}; + +Ext.lib.Region.getRegion = function(el) { + var p = Ext.lib.Dom.getXY(el); + + var t = p[1]; + var r = p[0] + el.offsetWidth; + var b = p[1] + el.offsetHeight; + var l = p[0]; + + return new Ext.lib.Region(t, r, b, l); +}; + +Ext.lib.Point = function(x, y) { + if (Ext.isArray(x)) { + y = x[1]; + x = x[0]; + } + this.x = this.right = this.left = this[0] = x; + this.y = this.top = this.bottom = this[1] = y; +}; + +Ext.lib.Point.prototype = new Ext.lib.Region(); +})(); \ No newline at end of file diff --git a/deluge/ui/web/js/mootools-bridge.js b/deluge/ui/web/js/mootools-bridge.js index 59b0afb65..00ebde519 100644 --- a/deluge/ui/web/js/mootools-bridge.js +++ b/deluge/ui/web/js/mootools-bridge.js @@ -1,364 +1 @@ -/* - * Mootools Ext Adapter - * Author: christoph.pojer@gmail.com - http://og5.net/christoph - * Last Update: 6 April 2008 - * Version: 0.9a - * - * Requires: - * Core, Browser, Array, Function, Number, String, Hash, Event, Class, - * Class.Extras, Element, Element.Event, Element.Style, Element.Dimensions, - * DomReady, Fx, Fx.CSS, Fx.Morph, Fx.Transitions, Request, Fx.Scroll - * - */ - -(function(){ - -Ext.lib.Dom = { - getViewWidth : function(full) { - return document['get'+(full ? 'Scroll' : '')+'Width'](); - }, - - getViewHeight : function(full) { - return document['get'+(full ? 'Scroll' : '')+'Height'](); - }, - - getDocumentHeight: function() { - return document.getScrollHeight(); - }, - - getDocumentWidth: function() { - return document.getScrollWidth(); - }, - - getViewportHeight: function() { - return document.getHeight(); - }, - - getViewportWidth: function() { - return document.getWidth(); - }, - - isAncestor : function(p, c){ - return $(p).hasChild(c); - }, - - getRegion : function(el){ - return Ext.lib.Region.getRegion(el); - }, - - getY : function(el){ - return $(el).getTop(); - }, - - getX : function(el){ - return $(el).getLeft(); - }, - - getXY : function(el){ - return Hash.getValues($(el).getPosition()); - }, - - setXY : function(el, xy){ - var pts = Ext.get(el).translatePoints(xy); - Hash.each(pts, function(v, i){ - if(!v) return; - $(el).setStyle(i, v+'px'); - }); - }, - - setX : function(el, x){ - this.setXY(el, [x, false]); - }, - - setY : function(el, y){ - this.setXY(el, [false, y]); - } -}; -function getElement(el){ - if($type(el)=='object') return new Document(el); - - return $(el); -} -Ext.lib.Event = { - getPageX : function(e){ - return new Event(e.browserEvent || e).page.x; - }, - - getPageY : function(e){ - return new Event(e.browserEvent || e).page.y; - }, - - getXY : function(e){ - var p = new Event(e.browserEvent || e).page; - return p ? [p.x, p.y] : [0, 0]; - }, - - getTarget : function(e){ - return new Event(e.browserEvent || e).target; - }, - - resolveTextNode: function(node) { - return node && 3 == node.nodeType ? node.parentNode : node; - }, - - getRelatedTarget: function(e) { - return new Event(e.browserEvent || e).relatedTarget; - }, - - on: function(el, e, fn){ - el = getElement(el); - if(el) el.addListener(e, fn); - }, - - un: function(el, e, fn){ - el = getElement(el); - if(el) el.removeListener(e, fn); - }, - - purgeElement: function(el){ - el = getElement(el); - if(el) el.removeEvents(); - }, - - preventDefault: function(e){ - new Event(e.browserEvent || e).preventDefault(); - }, - - stopPropagation: function(e){ - new Event(e.browserEvent || e).stopPropagation(); - }, - - stopEvent: function(e){ - new Event(e.browserEvent || e).stop(); - }, - - onAvailable: function(id, fn, scope){ - if(Browser.loaded) fn.call(scope || window, $(id)); - else document.addEvent('domready', fn); - } -}; - -Ext.lib.Ajax = function(){ - var createSuccess = function(cb){ - return cb.success ? function(text, xml){ - cb.success.call(cb.scope||window, { - responseText: text, - responseXML : xml, - argument: cb.argument - }); - } : Ext.emptyFn; - }; - var createFailure = function(cb){ - return cb.failure ? function(text, xml){ - cb.failure.call(cb.scope||window, { - responseText: text, - responseXML : xml, - argument: cb.argument - }); - } : Ext.emptyFn; - }; - return { - request: function(method, uri, cb, data, options){ - var o = { - url: uri, - method: method.toLowerCase(), - data: data || '', - /*timeout: cb.timeout,*/ - onSuccess: createSuccess(cb), - onFailure: createFailure(cb) - }; - if(options){ - if(options.headers) - o.headers = options.headers; - - if(options.xmlData){ - o.method = 'post'; - o.headers = {'Content-type': 'text/xml'}; - o.data = options.xmlData; - } - if(options.jsonData){ - o.method = 'post'; - o.headers = {'Content-type': 'text/javascript'}; - o.data = typeof options.jsonData == 'object' ? Ext.encode(options.jsonData) : options.jsonData; - } - } - new Request(o).send(); - }, - - formRequest: function(form, uri, cb, data, isUpload, sslUri){ - new Request({ - url: uri, - method: (Ext.getDom(form).method || 'post').toLowerCase(), - data: $(form).toQueryString()+(data?'&'+data:''), - /*timeout: cb.timeout,*/ - onSuccess: createSuccess(cb), - onFailure: createFailure(cb) - }).send(); - }, - - isCallInProgress: function(trans){ - //still need a way to access the request object. - return false; - }, - - abort: function(trans){ - //like above - return false; - }, - - serializeForm: function(form){ - return $(form.dom || form).toQueryString(); - } - }; -}(); - - -Ext.lib.Anim = function(){ - - var createAnim = function(cb, scope){ - return { - stop : function(skipToLast){ - this.effect.pause(); - }, - - isAnimated : function(){ - return !!this.effect.timer; - }, - - proxyCallback : function(){ - Ext.callback(cb, scope); - } - }; - }; - var transition = function(t){ - if(!Fx.Transitions[t]) t = 'linear'; - return Fx.Transitions[t]; - }; - var obj = { - scroll : function(el, args, duration, easing, cb, scope){ - var anim = createAnim(cb, scope); - anim.effect = new Fx.Scroll(el, { - duration: duration * 1000, - transisions: transition(easing), - onComplete: anim.proxyCallback - }).start(args); - return anim; - }, - - run : function(el, args, duration, easing, cb, scope, type){ - if(easing=='easeNone') easing = 'linear'; - var anim = createAnim(cb, scope); - var style = {}; - for(i in args){ - if(i=='points'){ - var by, p, e = Ext.fly(el, '_animrun'); - e.position(); - if(by = args[i].by){ - var xy = e.getXY(); - p = e.translatePoints([xy[0]+by[0], xy[1]+by[1]]); - }else{ - p = e.translatePoints(args[i].to); - } - style.left = p.left; - style.top = p.top; - }else{ - style[i] = args[i].from ? [args[i].from, args[i].to] : [args[i].to]; - } - } - anim.effect = new Fx.Morph(el, { - duration: duration * 1000, - transition: transition(easing), - onComplete: anim.proxyCallback - }).start(style); - return anim; - } - }; - - return Hash.extend(obj, { - motion: obj.run, - color: obj.run - }); -}(); - -Ext.lib.Region = function(t, r, b, l) { - this.top = t; - this[1] = t; - this.right = r; - this.bottom = b; - this.left = l; - this[0] = l; -}; - -Ext.lib.Region.prototype = { - contains : function(region) { - return ( region.left >= this.left && - region.right <= this.right && - region.top >= this.top && - region.bottom <= this.bottom ); - - }, - - getArea : function() { - return ( (this.bottom - this.top) * (this.right - this.left) ); - }, - - intersect : function(region) { - var t = Math.max( this.top, region.top ); - var r = Math.min( this.right, region.right ); - var b = Math.min( this.bottom, region.bottom ); - var l = Math.max( this.left, region.left ); - - if (b >= t && r >= l) { - return new Ext.lib.Region(t, r, b, l); - } else { - return null; - } - }, - union : function(region) { - var t = Math.min( this.top, region.top ); - var r = Math.max( this.right, region.right ); - var b = Math.max( this.bottom, region.bottom ); - var l = Math.min( this.left, region.left ); - - return new Ext.lib.Region(t, r, b, l); - }, - - constrainTo : function(r) { - this.top = this.top.constrain(r.top, r.bottom); - this.bottom = this.bottom.constrain(r.top, r.bottom); - this.left = this.left.constrain(r.left, r.right); - this.right = this.right.constrain(r.left, r.right); - return this; - }, - - adjust : function(t, l, b, r){ - this.top += t; - this.left += l; - this.right += r; - this.bottom += b; - return this; - } -}; - -Ext.lib.Region.getRegion = function(el) { - var p = Ext.lib.Dom.getXY(el); - - var t = p[1]; - var r = p[0] + el.offsetWidth; - var b = p[1] + el.offsetHeight; - var l = p[0]; - - return new Ext.lib.Region(t, r, b, l); -}; - -Ext.lib.Point = function(x, y) { - if (Ext.isArray(x)) { - y = x[1]; - x = x[0]; - } - this.x = this.right = this.left = this[0] = x; - this.y = this.top = this.bottom = this[1] = y; -}; - -Ext.lib.Point.prototype = new Ext.lib.Region(); -})(); \ No newline at end of file +(function(){Ext.lib.Dom={getViewWidth:function(b){return document["get"+(b?"Scroll":"")+"Width"]()},getViewHeight:function(b){return document["get"+(b?"Scroll":"")+"Height"]()},getDocumentHeight:function(){return document.getScrollHeight()},getDocumentWidth:function(){return document.getScrollWidth()},getViewportHeight:function(){return document.getHeight()},getViewportWidth:function(){return document.getWidth()},isAncestor:function(b,d){return $(b).hasChild(d)},getRegion:function(b){return Ext.lib.Region.getRegion(b)},getY:function(b){return $(b).getTop()},getX:function(b){return $(b).getLeft()},getXY:function(b){return Hash.getValues($(b).getPosition())},setXY:function(b,c){var d=Ext.get(b).translatePoints(c);Hash.each(d,function(e,f){if(!e){return}$(b).setStyle(f,e+"px")})},setX:function(c,b){this.setXY(c,[b,false])},setY:function(b,c){this.setXY(b,[false,c])}};function a(b){if($type(b)=="object"){return new Document(b)}return $(b)}Ext.lib.Event={getPageX:function(b){return new Event(b.browserEvent||b).page.x},getPageY:function(b){return new Event(b.browserEvent||b).page.y},getXY:function(c){var b=new Event(c.browserEvent||c).page;return b?[b.x,b.y]:[0,0]},getTarget:function(b){return new Event(b.browserEvent||b).target},resolveTextNode:function(b){return b&&3==b.nodeType?b.parentNode:b},getRelatedTarget:function(b){return new Event(b.browserEvent||b).relatedTarget},on:function(c,d,b){c=a(c);if(c){c.addListener(d,b)}},un:function(c,d,b){c=a(c);if(c){c.removeListener(d,b)}},purgeElement:function(b){b=a(b);if(b){b.removeEvents()}},preventDefault:function(b){new Event(b.browserEvent||b).preventDefault()},stopPropagation:function(b){new Event(b.browserEvent||b).stopPropagation()},stopEvent:function(b){new Event(b.browserEvent||b).stop()},onAvailable:function(d,c,b){if(Browser.loaded){c.call(b||window,$(d))}else{document.addEvent("domready",c)}}};Ext.lib.Ajax=function(){var c=function(d){return d.success?function(f,e){d.success.call(d.scope||window,{responseText:f,responseXML:e,argument:d.argument})}:Ext.emptyFn};var b=function(d){return d.failure?function(f,e){d.failure.call(d.scope||window,{responseText:f,responseXML:e,argument:d.argument})}:Ext.emptyFn};return{request:function(j,f,d,g,e){var h={url:f,method:j.toLowerCase(),data:g||"",onSuccess:c(d),onFailure:b(d)};if(e){if(e.headers){h.headers=e.headers}if(e.xmlData){h.method="post";h.headers={"Content-type":"text/xml"};h.data=e.xmlData}if(e.jsonData){h.method="post";h.headers={"Content-type":"text/javascript"};h.data=typeof e.jsonData=="object"?Ext.encode(e.jsonData):e.jsonData}}new Request(h).send()},formRequest:function(h,g,e,j,d,f){new Request({url:g,method:(Ext.getDom(h).method||"post").toLowerCase(),data:$(h).toQueryString()+(j?"&"+j:""),onSuccess:c(e),onFailure:b(e)}).send()},isCallInProgress:function(d){return false},abort:function(d){return false},serializeForm:function(d){return $(d.dom||d).toQueryString()}}}();Ext.lib.Anim=function(){var d=function(e,f){return{stop:function(g){this.effect.pause()},isAnimated:function(){return !!this.effect.timer},proxyCallback:function(){Ext.callback(e,f)}}};var c=function(e){if(!Fx.Transitions[e]){e="linear"}return Fx.Transitions[e]};var b={scroll:function(h,f,k,l,e,g){var j=d(e,g);j.effect=new Fx.Scroll(h,{duration:k*1000,transisions:c(l),onComplete:j.proxyCallback}).start(f);return j},run:function(h,q,k,o,j,s,r){if(o=="easeNone"){o="linear"}var l=d(j,s);var f={};for(i in q){if(i=="points"){var n,g,m=Ext.fly(h,"_animrun");m.position();if(n=q[i].by){var t=m.getXY();g=m.translatePoints([t[0]+n[0],t[1]+n[1]])}else{g=m.translatePoints(q[i].to)}f.left=g.left;f.top=g.top}else{f[i]=q[i].from?[q[i].from,q[i].to]:[q[i].to]}}l.effect=new Fx.Morph(h,{duration:k*1000,transition:c(o),onComplete:l.proxyCallback}).start(f);return l}};return Hash.extend(b,{motion:b.run,color:b.run})}();Ext.lib.Region=function(e,f,c,d){this.top=e;this[1]=e;this.right=f;this.bottom=c;this.left=d;this[0]=d};Ext.lib.Region.prototype={contains:function(b){return(b.left>=this.left&&b.right<=this.right&&b.top>=this.top&&b.bottom<=this.bottom)},getArea:function(){return((this.bottom-this.top)*(this.right-this.left))},intersect:function(g){var e=Math.max(this.top,g.top);var f=Math.min(this.right,g.right);var c=Math.min(this.bottom,g.bottom);var d=Math.max(this.left,g.left);if(c>=e&&f>=d){return new Ext.lib.Region(e,f,c,d)}else{return null}},union:function(g){var e=Math.min(this.top,g.top);var f=Math.max(this.right,g.right);var c=Math.max(this.bottom,g.bottom);var d=Math.min(this.left,g.left);return new Ext.lib.Region(e,f,c,d)},constrainTo:function(b){this.top=this.top.constrain(b.top,b.bottom);this.bottom=this.bottom.constrain(b.top,b.bottom);this.left=this.left.constrain(b.left,b.right);this.right=this.right.constrain(b.left,b.right);return this},adjust:function(e,d,c,f){this.top+=e;this.left+=d;this.right+=f;this.bottom+=c;return this}};Ext.lib.Region.getRegion=function(f){var h=Ext.lib.Dom.getXY(f);var e=h[1];var g=h[0]+f.offsetWidth;var c=h[1]+f.offsetHeight;var d=h[0];return new Ext.lib.Region(e,g,c,d)};Ext.lib.Point=function(b,c){if(Ext.isArray(b)){c=b[1];b=b[0]}this.x=this.right=this.left=this[0]=b;this.y=this.top=this.bottom=this[1]=c};Ext.lib.Point.prototype=new Ext.lib.Region()})(); \ No newline at end of file