Skip to content

Commit

Permalink
fix warning on React15
Browse files Browse the repository at this point in the history
  • Loading branch information
lupengyu committed Dec 23, 2016
1 parent d55f594 commit 172cf82
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion bower.json
Expand Up @@ -34,5 +34,5 @@
"melon": "^0.3.4",
"melon-core": "^0.3.2"
},
"version": "1.0.1"
"version": "1.0.2"
}
8 changes: 4 additions & 4 deletions lib/Spliter.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/Spliter.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "melon-split-pane",
"version": "1.0.1",
"version": "1.0.2",
"description": "Split Pane Component for React",
"main": "lib/SplitPane.js",
"scripts": {
Expand Down
5 changes: 2 additions & 3 deletions src/Spliter.js
Expand Up @@ -136,8 +136,7 @@ export default class Spliter extends Component {

const {
direction,
children,
...rest
children
} = this.props;

const className = cx(this.props)
Expand All @@ -147,7 +146,6 @@ export default class Spliter extends Component {

return (
<div
{...rest}
className={className}
onMouseDown={this.onMouseDown}>
{children}
Expand All @@ -158,6 +156,7 @@ export default class Spliter extends Component {
}

Spliter.propTypes = {
direction: PropTypes.oneOf(['horizontal', 'vertical']).isRequired,
onResize: PropTypes.func.isRequired,
onResizeStart: PropTypes.func.isRequired,
onResizeEnd: PropTypes.func.isRequired
Expand Down
4 changes: 1 addition & 3 deletions tools/server.js
Expand Up @@ -3,8 +3,6 @@
* @author ludafa <ludafa@outlook.com>
*/

const path = require('path');

const webpack = require('webpack');
const config = require('./webpack.dev.js');

Expand All @@ -27,4 +25,4 @@ const server = new WebpackDevServer(compiler, {
}
});

server.listen(8080);
server.listen(process.env.PORT || 8080);

0 comments on commit 172cf82

Please sign in to comment.