set styles with setAttribute. fixes style fights
This commit is contained in:
parent
36baf498ce
commit
2b8c21d292
@ -82,7 +82,7 @@ function context () {
|
|||||||
}
|
}
|
||||||
else if(k === 'style') {
|
else if(k === 'style') {
|
||||||
if('string' === typeof l[k]) {
|
if('string' === typeof l[k]) {
|
||||||
e.style.cssText = l[k]
|
e.setAttribute(k, l[k]); //e.style.cssText = l[k]
|
||||||
}else{
|
}else{
|
||||||
for (var s in l[k]) (function(s, v) {
|
for (var s in l[k]) (function(s, v) {
|
||||||
if('function' === typeof v) {
|
if('function' === typeof v) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user