diff --git a/src/basic/Point.js b/src/basic/Point.js index 259f9d00..48728bb9 100644 --- a/src/basic/Point.js +++ b/src/basic/Point.js @@ -277,7 +277,7 @@ var Point = Base.extend({ if (length == 1 && args[index] instanceof Point) { return args[index]; } else if (length != 0) { - var point = new Point(); + var point = new Point(Point.dont); point.initialize.apply(point, index > 0 ? Array.prototype.slice.call(args, index) : args); return point; diff --git a/src/basic/Rectangle.js b/src/basic/Rectangle.js index 4e07e0cb..c4f6a985 100644 --- a/src/basic/Rectangle.js +++ b/src/basic/Rectangle.js @@ -283,7 +283,7 @@ Rectangle = Base.extend({ if (length == 1 && args[index] instanceof Rectangle) { return args[index]; } else if (length != 0) { - var rect = new Rectangle(); + var rect = new Rectangle(Rectangle.dont); rect.initialize.apply(rect, index > 0 ? Array.prototype.slice.call(args, index) : args); return rect; diff --git a/src/basic/Size.js b/src/basic/Size.js index 564565c4..5ebd58bb 100644 --- a/src/basic/Size.js +++ b/src/basic/Size.js @@ -94,7 +94,7 @@ var Size = Base.extend({ if (length == 1 && args[index] instanceof Size) { return args[index]; } else if (length != 0) { - var size = new Size(); + var size = new Size(Size.dont); size.initialize.apply(size, index > 0 ? Array.prototype.slice.call(args, index) : args); return size; diff --git a/src/color/Color.js b/src/color/Color.js index 8e4e6787..795e1623 100644 --- a/src/color/Color.js +++ b/src/color/Color.js @@ -36,7 +36,7 @@ Color = Base.extend({ if (length == 1 && args[index] instanceof Color) { return args[index]; } else if (length != 0) { - var rgbColor = new RGBColor(); + var rgbColor = new RGBColor(RGBColor.dont); rgbColor.initialize.apply(rgbColor, index > 0 ? Array.prototype.slice.call(args, index) : args); return rgbColor; diff --git a/src/path/Segment.js b/src/path/Segment.js index 277dc881..79c2d4c7 100644 --- a/src/path/Segment.js +++ b/src/path/Segment.js @@ -135,7 +135,7 @@ Segment = Base.extend({ if (length == 1 && args[index] instanceof Segment) { return args[index]; } else if (length != 0) { - var segment = new Segment(); + var segment = new Segment(Segment.dont); segment.initialize.apply(segment, index > 0 ? Array.prototype.slice.call(args, index) : args); return segment;