Skip assignment, just call updateOptions directly
Paul O’Shannessy committed
Feb 5, 2014 at 16:41 UTC
e0262d50f91d5e18d1d525099987170229632ec8
1 file changed
+1
-2
src/browser/dom/components/ReactDOMSelect.js
+1
-2
@@ -138,8 +138,7 @@ var ReactDOMSelect = ReactCompositeComponent.createClass({
138
},
139
140
componentDidMount: function() {
141
- var value = LinkedValueUtils.getValue(this);
142
- updateOptions(this, value);
141
+ updateOptions(this, LinkedValueUtils.getValue(this));
142
},
143
144
componentDidUpdate: function() {