From 0b222e6ef44ee8aefbc12d4efd2a0c823a0a1dd9 Mon Sep 17 00:00:00 2001 From: Gajus Kuizinas Date: Tue, 13 Oct 2015 16:56:05 +0100 Subject: [PATCH 1/2] https://github.com/gajus/react-css-modules/issues/46 --- dist/wrapStatelessFunction.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dist/wrapStatelessFunction.js b/dist/wrapStatelessFunction.js index 7a9229b..7ede40c 100644 --- a/dist/wrapStatelessFunction.js +++ b/dist/wrapStatelessFunction.js @@ -32,7 +32,9 @@ var wrapStatelessFunction = undefined; * @returns {function} */ wrapStatelessFunction = function (Component, defaultStyles, options) { - return function () { + var WrappedComponent = undefined; + + WrappedComponent = function () { for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { args[_key - 1] = arguments[_key]; } @@ -65,6 +67,10 @@ wrapStatelessFunction = function (Component, defaultStyles, options) { return _react2['default'].createElement('noscript'); }; + + (0, _lodashObjectAssign3['default'])(WrappedComponent, Component); + + return WrappedComponent; }; exports['default'] = wrapStatelessFunction; From bf08aef3389e27146ba488eef402dfe792afaeaa Mon Sep 17 00:00:00 2001 From: Gajus Kuizinas Date: Tue, 13 Oct 2015 16:56:10 +0100 Subject: [PATCH 2/2] 3.6.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 959b089..3d9f824 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "css", "modules" ], - "version": "3.5.2", + "version": "3.6.0", "author": { "name": "Gajus Kuizinas", "email": "gk@anuary.com",