/** @jsx React.DOM */ var EventLog = React.createClass({ getInitialState: function() { return { log: [] }; }, componentDidMount: function() { this.log = EventLogStore.getView(); this.log.addListener("change", this.onEventLogChange); }, componentWillUnmount: function() { this.log.removeListener("change", this.onEventLogChange); this.log.close(); }, onEventLogChange: function() { this.setState({ log: this.log.getAll() }); }, close: function() { SettingsActions.update({ showEventLog: false }); }, render: function() { //var messages = this.state.log.map(row => (
{row.message}
)); var messages = []; return (
                    
                    {messages}
                
); } });