Skip to content

Commit

Permalink
fix(shape): Fixes issue when options is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaiklor committed Nov 19, 2015
1 parent 6771e23 commit 7fd61cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shapes/Shape.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class Shape {
* @param {String} [options.background] Background color from {@link COLORS}
* @param {String} [options.foreground] Foreground color from {@link COLORS}
*/
constructor(options) {
constructor(options = {}) {
let {text, width, height, x, y, background, foreground} = options;

this.setText(text);
Expand Down

0 comments on commit 7fd61cb

Please sign in to comment.