Updated all unmount calls and better socket revamp

Signed-off-by: French Ben <me+git@frenchben.com>
This commit is contained in:
French Ben 2016-02-04 13:20:36 -08:00
parent 58e77236bf
commit c64b899259
5 changed files with 3 additions and 41 deletions

View File

@ -97,7 +97,7 @@ var ContainerListItem = React.createClass({
return ( return (
<Router.Link to="container" params={{name: container.Name}}> <Router.Link to="container" params={{name: container.Name}}>
<li onMouseEnter={self.handleItemMouseEnter} onMouseLeave={self.handleItemMouseLeave} onClick={self.handleClick}> <li onMouseEnter={self.handleItemMouseEnter} onMouseLeave={self.handleItemMouseLeave} onClick={self.handleClick} id={this.props.key}>
{state} {state}
<div className="info"> <div className="info">
<div className="name"> <div className="name">

View File

@ -26,7 +26,7 @@ var Containers = React.createClass({
containerStore.listen(this.update); containerStore.listen(this.update);
}, },
componentDidUnmount: function () { componentWillUnmount: function () {
containerStore.unlisten(this.update); containerStore.unlisten(this.update);
}, },
@ -109,42 +109,6 @@ var Containers = React.createClass({
shell.openExternal('https://github.com/docker/kitematic/issues/new'); shell.openExternal('https://github.com/docker/kitematic/issues/new');
}, },
// handleMouseEnterDockerTerminal: function () {
// this.setState({
// currentButtonLabel: 'Open terminal to use Docker command line.'
// });
// },
//
// handleMouseLeaveDockerTerminal: function () {
// this.setState({
// currentButtonLabel: ''
// });
// },
//
// handleMouseEnterReportIssue: function () {
// this.setState({
// currentButtonLabel: 'Report an issue or suggest feedback.'
// });
// },
//
// handleMouseLeaveReportIssue: function () {
// this.setState({
// currentButtonLabel: ''
// });
// },
//
// handleMouseEnterPreferences: function () {
// this.setState({
// currentButtonLabel: 'Change app preferences.'
// });
// },
//
// handleMouseLeavePreferences: function () {
// this.setState({
// currentButtonLabel: ''
// });
// },
render: function () { render: function () {
var sidebarHeaderClass = 'sidebar-header'; var sidebarHeaderClass = 'sidebar-header';
if (this.state.sidebarOffset) { if (this.state.sidebarOffset) {

View File

@ -73,7 +73,6 @@ module.exports = React.createClass({
nextPage = (page + 1 > this.state.totalPage) ? this.state.totalPage : page + 1; nextPage = (page + 1 > this.state.totalPage) ? this.state.totalPage : page + 1;
totalPage = this.state.totalPage; totalPage = this.state.totalPage;
} }
this.setState({ this.setState({
query: query, query: query,
loading: true, loading: true,

View File

@ -21,7 +21,7 @@ var Setup = React.createClass({
setupStore.listen(this.update); setupStore.listen(this.update);
}, },
componentDidUnmount: function () { componentWillUnmount: function () {
setupStore.unlisten(this.update); setupStore.unlisten(this.update);
}, },

View File

@ -109,7 +109,6 @@ export default {
}, },
async nonNativeSetup () { async nonNativeSetup () {
console.log('Non-native setup');
let virtualBoxVersion = null; let virtualBoxVersion = null;
let machineVersion = null; let machineVersion = null;
while (true) { while (true) {