Upgrade to ExtJS 3.1.1 - Released 02/08/2010
[extjs.git] / docs / source / DomHelper-more.html
index d8c3453..24bed17 100644 (file)
@@ -1,11 +1,12 @@
 <html>\r
 <head>\r
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />    \r
   <title>The source code</title>\r
     <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
     <script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
 </head>\r
 <body  onload="prettyPrint();">\r
-    <pre class="prettyprint lang-js">/**\r
+    <pre class="prettyprint lang-js"><div id="cls-Ext.DomHelper"></div>/**\r
  * @class Ext.DomHelper\r
  */\r
 Ext.apply(Ext.DomHelper,\r
@@ -66,7 +67,7 @@ function(){
                        }\r
                 }\r
             });\r
-            pub.applyStyles(el, o.style);\r
+            Ext.DomHelper.applyStyles(el, o.style);\r
 \r
             if ((cn = o.children || o.cn)) {\r
                 createDom(cn, el);\r
@@ -94,33 +95,6 @@ function(){
                <div id="prop-Ext.DomHelper-useDom"></div>/** True to force the use of DOM instead of html fragments @type Boolean */\r
            useDom : false,\r
 \r
-           <div id="method-Ext.DomHelper-applyStyles"></div>/**\r
-            * Applies a style specification to an element.\r
-            * @param {String/HTMLElement} el The element to apply styles to\r
-            * @param {String/Object/Function} styles A style specification string e.g. 'width:100px', or object in the form {width:'100px'}, or\r
-            * a function which returns such a specification.\r
-            */\r
-           applyStyles : function(el, styles){\r
-                   if(styles){\r
-                               var i = 0,\r
-                               len,\r
-                               style;\r
-\r
-                       el = Ext.fly(el);\r
-                               if(Ext.isFunction(styles)){\r
-                                       styles = styles.call();\r
-                               }\r
-                               if(Ext.isString(styles)){\r
-                                       styles = styles.trim().split(/\s*(?::|;)\s*/);\r
-                                       for(len = styles.length; i < len;){\r
-                                               el.setStyle(styles[i++], styles[i++]);\r
-                                       }\r
-                               }else if (Ext.isObject(styles)){\r
-                                       el.setStyle(styles);\r
-                               }\r
-                       }\r
-           },\r
-\r
            <div id="method-Ext.DomHelper-insertBefore"></div>/**\r
             * Creates new DOM element(s) and inserts them before el.\r
             * @param {Mixed} el The context element\r