Skip to content

Commit 6c2a865

Browse files
authored
possibility to reset the refCounter
1 parent 897ece0 commit 6c2a865

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/react-inline-css.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ var InlineCss = createReactClass({
3333
);
3434
},
3535
render: function () {
36+
if(this.props.counter){
37+
refCounter = this.props.counter;
38+
}
3639
var namespace = this.props.namespace || "InlineCss-" + refCounter++;
3740
var componentName = this.props.componentName || "&";
3841
var stylesheet = this._transformSheet(this.props.stylesheet, componentName, namespace);

0 commit comments

Comments
 (0)