Skip to content

Commit

Permalink
Merge pull request react-bootstrap#551 from AlexKVal/fixClassName
Browse files Browse the repository at this point in the history
Fix bug in ReactPlayground.
  • Loading branch information
mtscout6 committed Apr 22, 2015
2 parents d979355 + 5549fa5 commit 8a901fd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/src/ReactPlayground.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import classNames from 'classnames';
import * as modClassNames from 'classnames';
import * as modAccordion from '../../src/Accordion';
import * as modAlert from '../../src/Alert';
import * as modBadge from '../../src/Badge';
Expand Down Expand Up @@ -45,6 +45,7 @@ import * as modWell from '../../src/Well';
import {CodeMirror, IS_NODE} from './CodeMirror';
import babel from 'babel-core/browser';

const classNames = modClassNames.default;
/* eslint-disable */
const Accordion = modAccordion.default;
const Alert = modAlert.default;
Expand Down Expand Up @@ -279,8 +280,8 @@ const ReactPlayground = React.createClass({
console.error(e);
}

let compiledCode = this.compileCode();
try {
let compiledCode = this.compileCode();
if (this.props.renderCode) {
React.render(
<CodeMirrorEditor codeText={compiledCode} readOnly={true} />,
Expand All @@ -292,7 +293,7 @@ const ReactPlayground = React.createClass({
/* eslint-enable */
}
} catch (err) {
console.log(err);
console.log(err, compiledCode);
this.setTimeout(() => {
React.render(
<Alert bsStyle='danger'>{err.toString()}</Alert>,
Expand Down

0 comments on commit 8a901fd

Please sign in to comment.