-<html>
-<head>
- <title>The source code</title>
- <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
- <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
-</head>
-<body onload="prettyPrint();">
- <pre class="prettyprint lang-js">/*!
- * Ext JS Library 3.0.3
- * Copyright(c) 2006-2009 Ext JS, LLC
- * licensing@extjs.com
- * http://www.extjs.com/license
- */
-<div id="cls-Ext.DomHelper"></div>/**\r
+<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"><div id="cls-Ext.DomHelper"></div>/**\r
* @class Ext.DomHelper\r
* <p>The DomHelper class provides a layer of abstraction from DOM and transparently supports creating\r
* elements via DOM or using HTML fragments. It also has the ability to create HTML fragment templates\r
if(Ext.isString(o)){\r
b = o;\r
} else if (Ext.isArray(o)) {\r
- Ext.each(o, function(v) {\r
- b += createHtml(v);\r
- });\r
+ for (var i=0; i < o.length; i++) {\r
+ if(o[i]) {\r
+ b += createHtml(o[i]);\r
+ }\r
+ };\r
} else {\r
b += '<' + (o.tag = o.tag || 'div');\r
Ext.iterate(o, function(attr, val){\r
createHtml : createHtml\r
};\r
return pub;\r
-}();</pre>
-</body>
+}();</pre> \r
+</body>\r
</html>
\ No newline at end of file