Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Commit

Permalink
Merge pull request #47 from kadirahq/chainable-add-decorator
Browse files Browse the repository at this point in the history
Make addDecorator chainable
  • Loading branch information
Muhammed Thanish authored Jul 19, 2016
2 parents 0f1f205 + e0cb504 commit 29691de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/preview/utils/kind.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ var Kind = function () {
key: "addDecorator",
value: function addDecorator(decorator) {
this._decorators.push(decorator);
return this;
}
}, {
key: "add",
Expand Down
1 change: 1 addition & 0 deletions src/preview/utils/kind.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default class Kind {

addDecorator(decorator) {
this._decorators.push(decorator);
return this;
}

add(story, fn) {
Expand Down

0 comments on commit 29691de

Please sign in to comment.