Fix for issue #373
[raphael] / raphael.core.js
index 5b23d27..e42be8e 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);
         };
         /*\
          * Matrix.rotate