X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..refs/tags/3.1.0:/docs/source/Element.position.html diff --git a/docs/source/Element.position.html b/docs/source/Element.position.html index 32800482..8495b086 100644 --- a/docs/source/Element.position.html +++ b/docs/source/Element.position.html @@ -1,5 +1,6 @@ + The source code @@ -20,10 +21,6 @@ var D = Ext.lib.Dom, AUTO = "auto", ZINDEX = "z-index"; -function animTest(args, animate, i) { - return this.preanim && !!animate ? this.preanim(args, i) : false -} - Ext.Element.addMethods({
/** * Gets the current X position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). @@ -67,7 +64,7 @@ Ext.Element.addMethods({ * @return {Ext.Element} this */ setX : function(x, animate){ - return this.setXY([x, this.getY()], animTest.call(this, arguments, animate, 1)); + return this.setXY([x, this.getY()], this.animTest(arguments, animate, 1)); },
/** @@ -77,7 +74,7 @@ Ext.Element.addMethods({ * @return {Ext.Element} this */ setY : function(y, animate){ - return this.setXY([this.getX(), y], animTest.call(this, arguments, animate, 1)); + return this.setXY([this.getX(), y], this.animTest(arguments, animate, 1)); },
/** @@ -146,7 +143,7 @@ Ext.Element.addMethods({ * @return {Ext.Element} this */ setLocation : function(x, y, animate){ - return this.setXY([x, y], animTest.call(this, arguments, animate, 2)); + return this.setXY([x, y], this.animTest(arguments, animate, 2)); },
/** @@ -158,7 +155,7 @@ Ext.Element.addMethods({ * @return {Ext.Element} this */ moveTo : function(x, y, animate){ - return this.setXY([x, y], animTest.call(this, arguments, animate, 2)); + return this.setXY([x, y], this.animTest(arguments, animate, 2)); },
/** @@ -299,7 +296,9 @@ Ext.Element.addMethods({ return {left: (x - o[0] + l), top: (y - o[1] + t)}; }, - animTest : animTest + animTest : function(args, animate, i) { + return !!animate && this.preanim ? this.preanim(args, i) : false; + } }); })();