From: Alan Knowles Date: Mon, 26 Jul 2010 09:57:35 +0000 (+0800) Subject: Roo/Element.js X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=13f9b35870798b806d5f33988228eb9cb2585bc8;p=roojs1 Roo/Element.js --- diff --git a/Roo/Element.js b/Roo/Element.js index 23831500b0..ed7df3a886 100644 --- a/Roo/Element.js +++ b/Roo/Element.js @@ -746,12 +746,13 @@ if(opt.anim.isAnimated()){ setStyle : function(prop, value){ if(typeof prop == "string"){ var camel; - if(prop == 'float'){ // not sure why this is not here.. - prop = "cssFloat"; - } + if(!(camel = propCache[prop])){ camel = propCache[prop] = prop.replace(camelRe, camelFn); } + if(prop == 'float'){ // not sure why this is not here.. + prop = "cssFloat"; + } if(camel == 'opacity') { this.setOpacity(value); }else{