set styles with setAttribute. fixes style fights

pull/1/head
ansuz 9 years ago
parent 36baf498ce
commit 2b8c21d292

@ -82,7 +82,7 @@ function context () {
}
else if(k === 'style') {
if('string' === typeof l[k]) {
e.style.cssText = l[k]
e.setAttribute(k, l[k]); //e.style.cssText = l[k]
}else{
for (var s in l[k]) (function(s, v) {
if('function' === typeof v) {

Loading…
Cancel
Save