Roo/util/Math.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 14 Jan 2011 08:46:53 +0000 (16:46 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 14 Jan 2011 08:46:53 +0000 (16:46 +0800)
Roo/util/Math.js

index a05f488..9a553e5 100644 (file)
@@ -17,7 +17,7 @@ Roo = typeof(Roo) != 'undefined' ? Roo :  { util : { }};
  */
 
 Roo.util.Math = function(num, precision, roundType){
-       this._constructor(num,precision, roundType);
+       this.ctor(num,precision, roundType);
 };
 
 Roo.util.Math.ROUND_HALF_EVEN = (Roo.util.Math.ROUND_HALF_DOWN = (Roo.util.Math.ROUND_HALF_UP =
@@ -35,7 +35,7 @@ Roo.util.Math.prototype = {
     precision : 0,
     
     //private
-    _constructor : function (num, precision, roundType) {
+    ctor : function (num, precision, roundType) {
         var i;
         if(num instanceof Roo.util.Math){
             var o = this;
@@ -213,7 +213,7 @@ Roo.util.Math.prototype = {
     
        set : function(n)
     {
-               this._constructor(n)
+               this.ctor(n)
         return this;
        },
 /**