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

index 398a803..75ddfbb 100644 (file)
@@ -174,10 +174,12 @@ Roo.util.Math.prototype = {
        },
        round : function()
     {
-         var m = Roo.util.Math;
-               if(typeof(m._rounding) != 'undefined') return this; // stop recursion..
-        var m._rounding = true;
-               var   r = this.roundType,
+        var m = Roo.util.Math;
+               
+        if(typeof(m._rounding) != 'undefined') return this; // stop recursion..
+        m._rounding = true;
+               
+        var   r = this.roundType,
             b = this._d, 
             d, p, n, x;
         console.log(b.join(','));