Roo/util/Math.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 11 Jan 2011 07:10:28 +0000 (15:10 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 11 Jan 2011 07:10:28 +0000 (15:10 +0800)
Roo/util/Math.js

index 7d36b4e..df2b8c7 100644 (file)
@@ -163,7 +163,7 @@ Roo.util.Math.prototype = {
        },
        round : function(){
                if("_rounding" in this) return this;
-               var Roo.util.Math = Roo.util.Math, r = this.roundType, b = this._d, d, p, n, x;
+               var   r = this.roundType, b = this._d, d, p, n, x;
                for(this._rounding = true; this._f > 1 && !b[0]; --this._f, b.shift());
                for(d = this._f, p = this.precision + d, n = b[p]; b.length > d && !b[b.length -1]; b.pop());
                x = (this._s ? "-" : "") + (p - d ? "0." + this._zeroes([], p - d - 1).join("") : "") + 1;