X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/3789b528d8dd8aad4558e38e22d775bcab1cbd36..refs/heads/master:/docs/source/Element.static.html diff --git a/docs/source/Element.static.html b/docs/source/Element.static.html index f069af5c..206d9a49 100644 --- a/docs/source/Element.static.html +++ b/docs/source/Element.static.html @@ -3,8 +3,8 @@ The source code - - + + @@ -15,10 +15,10 @@ -
/**
- * @class Ext.core.Element
+  
/**
+ * @class Ext.Element
  */
-Ext.applyIf(Ext.core.Element, {
+Ext.applyIf(Ext.Element, {
     unitRe: /\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i,
     camelRe: /(-[a-z])/gi,
     opacityRe: /alpha\(opacity=(.*)\)/i,
@@ -30,13 +30,13 @@ Ext.applyIf(Ext.core.Element, {
     margins: {l: 'margin-left', r: 'margin-right', t: 'margin-top', b: 'margin-bottom'},
 
     // Reference the prototype's version of the method. Signatures are identical.
-    addUnits : Ext.core.Element.prototype.addUnits,
+    addUnits : Ext.Element.prototype.addUnits,
 
-    /**
+    /**
      * Parses a number or string representing margin sizes into an object. Supports CSS-style margin declarations
      * (e.g. 10, "10", "10 10", "10 10 10" and "10 10 10 10" are all valid options and would return the same result)
      * @static
-     * @param {Number|String} box The encoded margins
+     * @param {Number/String} box The encoded margins
      * @return {Object} An object with margin sizes for top, right, bottom and left
      */
     parseBox : function(box) {
@@ -75,11 +75,11 @@ Ext.applyIf(Ext.core.Element, {
         
     },
     
-    /**
+    /**
      * Parses a number or string representing margin sizes into an object. Supports CSS-style margin declarations
      * (e.g. 10, "10", "10 10", "10 10 10" and "10 10 10 10" are all valid options and would return the same result)
      * @static
-     * @param {Number|String} box The encoded margins
+     * @param {Number/String} box The encoded margins
      * @param {String} units The type of units to add
      * @return {String} An string with unitized (px if units is not specified) metrics for top, right, bottom and left
      */
@@ -99,7 +99,7 @@ Ext.applyIf(Ext.core.Element, {
         return a.charAt(1).toUpperCase();
     },
 
-    /**
+    /**
      * Normalizes CSS property keys from dash delimited to camel case JavaScript Syntax.
      * For example:
      * <ul>
@@ -117,7 +117,7 @@ Ext.applyIf(Ext.core.Element, {
         return this.propertyCache[prop] || (this.propertyCache[prop] = prop.replace(this.camelRe, this.camelReplaceFn));
     },
 
-    /**
+    /**
      * Retrieves the document height
      * @static
      * @return {Number} documentHeight
@@ -126,7 +126,7 @@ Ext.applyIf(Ext.core.Element, {
         return Math.max(!Ext.isStrict ? document.body.scrollHeight : document.documentElement.scrollHeight, this.getViewportHeight());
     },
 
-    /**
+    /**
      * Retrieves the document width
      * @static
      * @return {Number} documentWidth
@@ -135,7 +135,7 @@ Ext.applyIf(Ext.core.Element, {
         return Math.max(!Ext.isStrict ? document.body.scrollWidth : document.documentElement.scrollWidth, this.getViewportWidth());
     },
 
-    /**
+    /**
      * Retrieves the viewport height of the window.
      * @static
      * @return {Number} viewportHeight
@@ -144,7 +144,7 @@ Ext.applyIf(Ext.core.Element, {
         return window.innerHeight;
     },
 
-    /**
+    /**
      * Retrieves the viewport width of the window.
      * @static
      * @return {Number} viewportWidth
@@ -153,7 +153,7 @@ Ext.applyIf(Ext.core.Element, {
         return window.innerWidth;
     },
 
-    /**
+    /**
      * Retrieves the viewport size of the window.
      * @static
      * @return {Object} object containing width and height properties
@@ -165,7 +165,7 @@ Ext.applyIf(Ext.core.Element, {
         };
     },
 
-    /**
+    /**
      * Retrieves the current orientation of the window. This is calculated by
      * determing if the height is greater than the width.
      * @static
@@ -179,25 +179,25 @@ Ext.applyIf(Ext.core.Element, {
         return (window.innerHeight > window.innerWidth) ? 'portrait' : 'landscape';
     },
 
-    /** 
+    /** 
      * Returns the top Element that is located at the passed coordinates
      * @static
      * @param {Number} x The x coordinate
-     * @param {Number} x The y coordinate
+     * @param {Number} y The y coordinate
      * @return {String} The found Element
      */
     fromPoint: function(x, y) {
         return Ext.get(document.elementFromPoint(x, y));
     },
     
-    /**
+    /**
      * Converts a CSS string into an object with a property for each style.
      * <p>
      * The sample code below would return an object with 2 properties, one
      * for background-color and one for color.</p>
      * <pre><code>
 var css = 'background-color: red;color: blue; ';
-console.log(Ext.core.Element.parseStyles(css));
+console.log(Ext.Element.parseStyles(css));
      * </code></pre>
      * @static
      * @param {String} styles A CSS string