cant refer to local with 'this'
[roojs1] / Roo / util / Format.js
index 3c0715c..dd9c0dc 100644 (file)
@@ -260,7 +260,7 @@ Roo.util.Format = function(){
                 return 0;
             }
             var i = parseInt(Math.floor(Math.log(value) / Math.log(1024)));
-            return this.number(value/ Math.pow(1024, i) ,decimals) + ' ' + sizes[i];
+            return Roo.util.Format.number(value/ Math.pow(1024, i) ,decimals) + ' ' + sizes[i];
         }