Upgrade dependencies, update to react,react-dom 0.14

This commit is contained in:
Erik 2015-10-12 14:05:45 -05:00
parent 0a1458cdbd
commit fb227a6c15
2 changed files with 5 additions and 5 deletions

View File

@ -43,9 +43,9 @@
"jsdom": "^6.5.1",
"mocha": "^2.2.5",
"mocha-jsdom": "^1.0.0",
"react": "^0.14.0-rc1",
"react": "^0.14.0",
"react-addons-test-utils": "^0.14.0-rc1",
"react-dom": "^0.14.0-rc1",
"react-dom": "^0.14.0",
"rimraf": "^2.3.4",
"webpack": "^1.11.0"
},

View File

@ -1,4 +1,4 @@
import React, { PropTypes, findDOMNode, Component } from 'react';
import React, { PropTypes, Component } from 'react';
import LogMonitorEntry from './LogMonitorEntry';
import LogMonitorButton from './LogMonitorButton';
import * as themes from './themes';
@ -69,7 +69,7 @@ export default class LogMonitor extends Component {
};
componentWillReceiveProps(nextProps) {
const node = findDOMNode(this.refs.elements);
const node = this.refs.elements;
if (!node) {
this.scrollDown = true;
} else if (
@ -86,7 +86,7 @@ export default class LogMonitor extends Component {
}
componentDidUpdate() {
const node = findDOMNode(this.refs.elements);
const node = this.refs.elements;
if (!node) {
return;
}