Skip to content

Commit bb9ebdc

Browse files
author
Luke Westby
committed
Merge pull request #1 from gajus/master
merge upstream
2 parents c84d5ab + bf08aef commit bb9ebdc

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

dist/wrapStatelessFunction.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ var wrapStatelessFunction = undefined;
3232
* @returns {function}
3333
*/
3434
wrapStatelessFunction = function (Component, defaultStyles, options) {
35-
return function () {
35+
var WrappedComponent = undefined;
36+
37+
WrappedComponent = function () {
3638
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
3739
args[_key - 1] = arguments[_key];
3840
}
@@ -65,6 +67,10 @@ wrapStatelessFunction = function (Component, defaultStyles, options) {
6567

6668
return _react2['default'].createElement('noscript');
6769
};
70+
71+
(0, _lodashObjectAssign3['default'])(WrappedComponent, Component);
72+
73+
return WrappedComponent;
6874
};
6975

7076
exports['default'] = wrapStatelessFunction;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"css",
1313
"modules"
1414
],
15-
"version": "3.5.2",
15+
"version": "3.6.0",
1616
"author": {
1717
"name": "Gajus Kuizinas",
1818
"email": "gk@anuary.com",

0 commit comments

Comments
 (0)