Skip to content

Commit

Permalink
fix(shape): Fixes issue when class name is taken not from the correct…
Browse files Browse the repository at this point in the history
… source
  • Loading branch information
ghaiklor committed Nov 20, 2015
1 parent c593f96 commit f966b38
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/shapes/Shape.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* }
*/
export class Shape {
_name = 'Shape';
_text = '';
_width = 15;
_height = 5;
Expand Down Expand Up @@ -52,15 +51,6 @@ export class Shape {
this.setForeground(foreground);
}

/**
* Get name of the shape.
*
* @returns {String}
*/
getName() {
return this._name;
}

/**
* Get text content from this shape.
*
Expand Down Expand Up @@ -202,7 +192,7 @@ export class Shape {
*/
toObject() {
return {
name: this.getName(),
name: this.constructor.name,
options: {
text: this.getText(),
width: this.getWidth(),
Expand Down

0 comments on commit f966b38

Please sign in to comment.