From e0cb504cd9d834bb91a268de1481b23adc22f538 Mon Sep 17 00:00:00 2001 From: Muhammed Thanish Date: Tue, 19 Jul 2016 15:16:51 +0530 Subject: [PATCH] Make addDecorator chainable --- dist/preview/utils/kind.js | 1 + src/preview/utils/kind.js | 1 + 2 files changed, 2 insertions(+) diff --git a/dist/preview/utils/kind.js b/dist/preview/utils/kind.js index 288efaf..8abaeaa 100644 --- a/dist/preview/utils/kind.js +++ b/dist/preview/utils/kind.js @@ -22,6 +22,7 @@ var Kind = function () { key: "addDecorator", value: function addDecorator(decorator) { this._decorators.push(decorator); + return this; } }, { key: "add", diff --git a/src/preview/utils/kind.js b/src/preview/utils/kind.js index d073512..d721821 100644 --- a/src/preview/utils/kind.js +++ b/src/preview/utils/kind.js @@ -8,6 +8,7 @@ export default class Kind { addDecorator(decorator) { this._decorators.push(decorator); + return this; } add(story, fn) {