Roo/Template.js
[roojs1] / roojs-core-debug.js
index 072af4f..7b87cc9 100644 (file)
@@ -848,7 +848,7 @@ Roo.applyIf(Array.prototype, {
      * Map (JS 1.6 compatibility)
      * @param {Function} function  to call
      */
-    map : function(fun /*, thisp*/)
+    map : function(fun )
     {
         var len = this.length >>> 0;
         if (typeof fun != "function")
@@ -868,11 +868,7 @@ Roo.applyIf(Array.prototype, {
 });
 
 
-
-if (!Array.prototype.map)
-{
-  Array.prototype.
-}/*
+ /*
  * Based on:
  * Ext JS Library 1.1.1
  * Copyright(c) 2006-2007, Ext JS, LLC.
@@ -7377,10 +7373,17 @@ if(opt.anim.isAnimated()){
          */
         setStyle : function(prop, value){
             if(typeof prop == "string"){
+                
+                if (prop == 'float') {
+                    this.setStyle(Roo.isIE ? 'styleFloat'  : 'cssFloat', value);
+                    return this;
+                }
+                
                 var camel;
                 if(!(camel = propCache[prop])){
                     camel = propCache[prop] = prop.replace(camelRe, camelFn);
                 }
+                
                 if(camel == 'opacity') {
                     this.setOpacity(value);
                 }else{