roojs-core.js
[roojs1] / roojs-core-debug.js
index 389ae58..05ee001 100644 (file)
@@ -8126,7 +8126,7 @@ if(opt.anim.isAnimated()){
                     return 0;
                 }
                 
-                if(x.test(this.pxReg)){
+                if(this.pxReg.test(x)){
                     return parseFloat(x);
                 }