From 674bc4273e9a2f1a2e41ef977a80219423c7cb51 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Tue, 16 Sep 2014 00:56:43 +0200 Subject: format javascript --- web/src/js/components/TrafficTable.react.js | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) (limited to 'web/src/js/components/TrafficTable.react.js') diff --git a/web/src/js/components/TrafficTable.react.js b/web/src/js/components/TrafficTable.react.js index d6a4f200..7e9e26e3 100644 --- a/web/src/js/components/TrafficTable.react.js +++ b/web/src/js/components/TrafficTable.react.js @@ -1,31 +1,34 @@ /** @jsx React.DOM */ var TrafficTable = React.createClass({ - getInitialState: function(){ + getInitialState() { return { flows: [] }; }, - componentDidMount(){ + componentDidMount() { //this.flowStore = FlowStore.getView(); //this.flowStore.addListener("change",this.onFlowChange); }, - componentWillUnmount(){ + componentWillUnmount() { //this.flowStore.removeListener("change",this.onFlowChange); //this.flowStore.close(); }, - onFlowChange(){ + onFlowChange() { this.setState({ //flows: this.flowStore.getAll() }); }, - render: function () { - /*var flows = this.state.flows.map(function(flow){ - return
{flow.request.method} {flow.request.scheme}://{flow.request.host}{flow.request.path}
; - }); *//**/ - x = "Flow"; - i = 12; - while(i--) x += x; - return
{x}
; - } + render() { + /*var flows = this.state.flows.map(function(flow){ + return
{flow.request.method} {flow.request.scheme}://{flow.request.host}{flow.request.path}
; + }); */ + //Dummy Text for layout testing + x = "Flow"; + i = 12; + while (i--) x += x; + return ( +
 { x } 
+ ); + } }); \ No newline at end of file -- cgit v1.2.3