X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..2e847cf21b8ab9d15fa167b315ca5b2fa92638fc:/docs/source/DomHelper-more.html diff --git a/docs/source/DomHelper-more.html b/docs/source/DomHelper-more.html index d8c3453a..24bed17d 100644 --- a/docs/source/DomHelper-more.html +++ b/docs/source/DomHelper-more.html @@ -1,11 +1,12 @@ + The source code -
/**
+    
/** * @class Ext.DomHelper */ Ext.apply(Ext.DomHelper, @@ -66,7 +67,7 @@ function(){ } } }); - pub.applyStyles(el, o.style); + Ext.DomHelper.applyStyles(el, o.style); if ((cn = o.children || o.cn)) { createDom(cn, el); @@ -94,33 +95,6 @@ function(){
/** True to force the use of DOM instead of html fragments @type Boolean */ useDom : false, -
/** - * Applies a style specification to an element. - * @param {String/HTMLElement} el The element to apply styles to - * @param {String/Object/Function} styles A style specification string e.g. 'width:100px', or object in the form {width:'100px'}, or - * a function which returns such a specification. - */ - applyStyles : function(el, styles){ - if(styles){ - var i = 0, - len, - style; - - el = Ext.fly(el); - if(Ext.isFunction(styles)){ - styles = styles.call(); - } - if(Ext.isString(styles)){ - styles = styles.trim().split(/\s*(?::|;)\s*/); - for(len = styles.length; i < len;){ - el.setStyle(styles[i++], styles[i++]); - } - }else if (Ext.isObject(styles)){ - el.setStyle(styles); - } - } - }, -
/** * Creates new DOM element(s) and inserts them before el. * @param {Mixed} el The context element