Skip to content

Commit

Permalink
fix(shape): Update shape-basic to the latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaiklor committed Feb 15, 2016
1 parent bf564d7 commit b9f83b4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Text.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,16 +222,16 @@ export default class Text extends Shape {
* @returns {{name, options}|*}
*/
toObject() {
let obj = super.toObject();
const obj = super.toObject();

Object.assign(obj.options, {
bold: this.isBold(),
dim: this.isDim(),
underlined: this.isUnderlined(),
blink: this.isBlink(),
reverse: this.isReverse(),
hidden: this.isHidden(),
align: this.getAlign()
bold: this.get('bold'),
dim: this.get('dim'),
underlined: this.get('underlined'),
blink: this.get('blink'),
reverse: this.get('reverse'),
hidden: this.get('hidden'),
align: this.get('align')
});

return obj;
Expand Down

0 comments on commit b9f83b4

Please sign in to comment.