Skip to content

Instantly share code, notes, and snippets.

@burabure
Created March 2, 2015 22:34
Show Gist options
  • Save burabure/fba8cae816cbc25244b2 to your computer and use it in GitHub Desktop.
Save burabure/fba8cae816cbc25244b2 to your computer and use it in GitHub Desktop.
try {
for (var _iterator = ViewportAngles[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var angle = _step.value;
var checked = this.props.viewAngle === angle;
viewAngleOptions.push(React.createElement(
"div",
{ className: "viewAngle" },
React.createElement("input", {
type: "radio",
name: "viewportAngles",
id: angle,
value: angle,
key: angle,
checked: this.props.checked,
onChange: this._onChangeView }),
React.createElement(
"label",
{ htmlFor: angle },
angle
)
));
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
try {
if (!_iteratorNormalCompletion && _iterator["return"]) {
_iterator["return"]();
}
} finally {
if (_didIteratorError) {
throw _iteratorError;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment