Roo/Element.js
authoredward <edward@roojs.com>
Thu, 28 Jan 2016 09:06:40 +0000 (17:06 +0800)
committeredward <edward@roojs.com>
Thu, 28 Jan 2016 09:06:40 +0000 (17:06 +0800)
Roo/Element.js

index 45b5d30..3508be0 100644 (file)
@@ -1205,7 +1205,7 @@ if(opt.anim.isAnimated()){
                     return 0;
                 }
                 
-                if(x.test(this.pxReg)){
+                if(this.pxReg.test(x)){
                     return parseFloat(x);
                 }