diff --git a/src/item/Shape.js b/src/item/Shape.js index 711394e5..22d70f32 100644 --- a/src/item/Shape.js +++ b/src/item/Shape.js @@ -437,7 +437,7 @@ statics: new function() { Ellipse: function(/* rectangle */) { var center, radius; - if (Base.hasNamed(arguments, 'center')) { + if (Base.hasNamed(arguments, 'radius')) { center = Point.readNamed(arguments, 'center'); radius = Size.readNamed(arguments, 'radius'); } else { diff --git a/src/path/Path.Constructors.js b/src/path/Path.Constructors.js index 26a6092b..c20be35f 100644 --- a/src/path/Path.Constructors.js +++ b/src/path/Path.Constructors.js @@ -284,7 +284,7 @@ Path.inject({ statics: new function() { Ellipse: function(/* rectangle */) { var center, radius; - if (Base.hasNamed(arguments, 'center')) { + if (Base.hasNamed(arguments, 'radius')) { center = Point.readNamed(arguments, 'center'); radius = Size.readNamed(arguments, 'radius'); } else {