git.ithinksw.org
/
extjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to ExtJS 3.2.2 - Released 06/02/2010
[extjs.git]
/
src
/
ext-core
/
src
/
core
/
DomHelper.js
diff --git
a/src/ext-core/src/core/DomHelper.js
b/src/ext-core/src/core/DomHelper.js
index
c1b539f
..
43706bf
100644
(file)
--- a/
src/ext-core/src/core/DomHelper.js
+++ b/
src/ext-core/src/core/DomHelper.js
@@
-1,5
+1,5
@@
/*!
/*!
- * Ext JS Library 3.2.
1
+ * Ext JS Library 3.2.
2
* Copyright(c) 2006-2010 Ext JS, Inc.
* licensing@extjs.com
* http://www.extjs.com/license
* Copyright(c) 2006-2010 Ext JS, Inc.
* licensing@extjs.com
* http://www.extjs.com/license
@@
-165,7
+165,6
@@
Ext.DomHelper = function(){
attr,
val,
key,
attr,
val,
key,
- keyVal,
cn;
if(typeof o == "string"){
cn;
if(typeof o == "string"){
@@
-281,21
+280,18
@@
Ext.DomHelper = function(){
* a function which returns such a specification.
*/
applyStyles : function(el, styles){
* a function which returns such a specification.
*/
applyStyles : function(el, styles){
- if(styles){
- var i = 0,
- len,
- style,
- matches;
+ if (styles) {
+ var matches;
el = Ext.fly(el);
el = Ext.fly(el);
- if
(typeof styles == "function")
{
+ if
(typeof styles == "function")
{
styles = styles.call();
}
styles = styles.call();
}
- if
(typeof styles == "string")
{
- while
((matches = cssRe.exec(styles)))
{
+ if
(typeof styles == "string")
{
+ while
((matches = cssRe.exec(styles)))
{
el.setStyle(matches[1], matches[2]);
}
el.setStyle(matches[1], matches[2]);
}
- }
else if (typeof styles == "object")
{
+ }
else if (typeof styles == "object")
{
el.setStyle(styles);
}
}
el.setStyle(styles);
}
}