X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..2e847cf21b8ab9d15fa167b315ca5b2fa92638fc:/src/core/core/DomHelper.js diff --git a/src/core/core/DomHelper.js b/src/core/core/DomHelper.js index d4c7bb99..0c554c83 100644 --- a/src/core/core/DomHelper.js +++ b/src/core/core/DomHelper.js @@ -1,6 +1,6 @@ /*! - * Ext JS Library 3.0.3 - * Copyright(c) 2006-2009 Ext JS, LLC + * Ext JS Library 3.1.1 + * Copyright(c) 2006-2010 Ext JS, LLC * licensing@extjs.com * http://www.extjs.com/license */ @@ -167,9 +167,11 @@ Ext.DomHelper = function(){ if(Ext.isString(o)){ b = o; } else if (Ext.isArray(o)) { - Ext.each(o, function(v) { - b += createHtml(v); - }); + for (var i=0; i < o.length; i++) { + if(o[i]) { + b += createHtml(o[i]); + } + }; } else { b += '<' + (o.tag = o.tag || 'div'); Ext.iterate(o, function(attr, val){