projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove debugging code
[roojs1]
/
Roo
/
DomHelper.js
diff --git
a/Roo/DomHelper.js
b/Roo/DomHelper.js
index
fee900c
..
fa5e397
100644
(file)
--- a/
Roo/DomHelper.js
+++ b/
Roo/DomHelper.js
@@
-48,7
+48,7
@@
Roo.DomHelper = function(){
}
b += "<" + o.tag;
for(var attr in o){
}
b += "<" + o.tag;
for(var attr in o){
- if(attr == "tag" || attr == "children" || attr == "cn" || attr == "html" || typeof o[attr] == "function")
continue;
+ if(attr == "tag" || attr == "children" || attr == "cn" || attr == "html" || typeof o[attr] == "function")
{ continue; }
if(attr == "style"){
var s = o["style"];
if(typeof s == "function"){
if(attr == "style"){
var s = o["style"];
if(typeof s == "function"){
@@
-131,13
+131,15
@@
Roo.DomHelper = function(){
for(var attr in o){
if(attr == "tag" || attr == "ns" ||attr == "xmlns" ||attr == "children" || attr == "cn" || attr == "html" ||
for(var attr in o){
if(attr == "tag" || attr == "ns" ||attr == "xmlns" ||attr == "children" || attr == "cn" || attr == "html" ||
- attr == "style" || typeof o[attr] == "function")
continue;
+ attr == "style" || typeof o[attr] == "function")
{ continue; }
if(attr=="cls" && Roo.isIE){
el.className = o["cls"];
}else{
if(attr=="cls" && Roo.isIE){
el.className = o["cls"];
}else{
- if(useSet) el.setAttribute(attr=="cls" ? 'class' : attr, o[attr]);
- else el[attr] = o[attr];
+ if(useSet) { el.setAttribute(attr=="cls" ? 'class' : attr, o[attr]);}
+ else {
+ el[attr] = o[attr];
+ }
}
}
Roo.DomHelper.applyStyles(el, o.style);
}
}
Roo.DomHelper.applyStyles(el, o.style);