Fix for issue #373
[raphael] / raphael.js
index 3b75385..a4d7950 100644 (file)
         
         matrixproto.scale = function (x, y, cx, cy) {
             y == null && (y = x);
-            cx || cy && this.add(1, 0, 0, 1, cx, cy);
+            (cx || cy) && this.add(1, 0, 0, 1, cx, cy);
             this.add(x, 0, 0, y, 0, 0);
-            cx || cy && this.add(1, 0, 0, 1, -cx, -cy);
+            (cx || cy) && this.add(1, 0, 0, 1, -cx, -cy);
         };
         
         matrixproto.rotate = function (a, x, y) {