X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775:/docs/source/Element.position.html diff --git a/docs/source/Element.position.html b/docs/source/Element.position.html index 32800482..c39aac41 100644 --- a/docs/source/Element.position.html +++ b/docs/source/Element.position.html @@ -1,11 +1,17 @@ - - - The source code - - - - -
/**
+
+
+  The source code
+    
+    
+
+
+    
/*!
+ * Ext JS Library 3.0.3
+ * Copyright(c) 2006-2009 Ext JS, LLC
+ * licensing@extjs.com
+ * http://www.extjs.com/license
+ */
+/**
  * @class Ext.Element
  */
 (function(){
@@ -20,10 +26,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 +69,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 +79,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 +148,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 +160,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,8 +301,10 @@ 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; + } }); -})();
- +})();
+ \ No newline at end of file