From 51db9a5612f0899ed61751dbee3f4e4b19a74ea4 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Wed, 17 Sep 2014 02:13:37 +0200 Subject: formatting --- web/src/js/components/traffictable.jsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'web/src/js/components/traffictable.jsx') diff --git a/web/src/js/components/traffictable.jsx b/web/src/js/components/traffictable.jsx index 69b89a64..8071b97e 100644 --- a/web/src/js/components/traffictable.jsx +++ b/web/src/js/components/traffictable.jsx @@ -1,34 +1,34 @@ /** @jsx React.DOM */ var TrafficTable = React.createClass({ - getInitialState: function() { + getInitialState: function () { return { flows: [] }; }, - componentDidMount: function() { + componentDidMount: function () { //this.flowStore = FlowStore.getView(); //this.flowStore.addListener("change",this.onFlowChange); }, - componentWillUnmount: function() { + componentWillUnmount: function () { //this.flowStore.removeListener("change",this.onFlowChange); //this.flowStore.close(); }, - onFlowChange: function() { + onFlowChange: function () { this.setState({ //flows: this.flowStore.getAll() }); }, - render: function() { + render: function () { /*var flows = this.state.flows.map(function(flow){ - return
{flow.request.method} {flow.request.scheme}://{flow.request.host}{flow.request.path}
; - }); */ + 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 ( + return (
Flow
- ); + ); } }); -- cgit v1.2.3