X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=docs%2Fsrc%2FRoo_util_Format.js.html;h=7e7630980f0d1bc1d4337564a69bffe50f774b11;hp=a6e4997d8d0d902187e24dff5ad3a73871e7c34f;hb=e6e74dd803c2f067844dd0d2a8b3176a06041b88;hpb=9da53a68d13d5f73e41052aa33a3b3b44d56e887 diff --git a/docs/src/Roo_util_Format.js.html b/docs/src/Roo_util_Format.js.html index a6e4997d8d..7e7630980f 100644 --- a/docs/src/Roo_util_Format.js.html +++ b/docs/src/Roo_util_Format.js.html @@ -246,6 +246,7 @@ stripTags : function(v){ return !v ? v : String(v).replace(this.stripTagsRE, ""); }, + /** * Size in Mb,Gb etc. * @param {Number} value The number to be formated @@ -255,11 +256,11 @@ size : function(value, decimals) { var sizes = ['b', 'k', 'M', 'G', 'T']; - if (v == 0) { + if (value == 0) { return 0; } - var i = parseInt(Math.floor(Math.log(v) / Math.log(1024))); - return this.number(v / Math.pow(1024, i) ,decimals) + ' ' + sizes[i]; + var i = parseInt(Math.floor(Math.log(value) / Math.log(1024))); + return this.number(value/ Math.pow(1024, i) ,decimals) + ' ' + sizes[i]; }