From 563078df2473a2a65c1a408e4cb27e79c95b7c87 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Mon, 15 Sep 2014 12:37:52 +1200 Subject: Client-side cleanup - Remove grunt - Formatting and spacing. There shall be 4 spaces in a tab. Not 3. Not 5. And 2 is right out. --- web/src/js/mitmproxy.react.js | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'web/src/js/mitmproxy.react.js') diff --git a/web/src/js/mitmproxy.react.js b/web/src/js/mitmproxy.react.js index cdb6221d..609d2014 100644 --- a/web/src/js/mitmproxy.react.js +++ b/web/src/js/mitmproxy.react.js @@ -19,15 +19,15 @@ var App = React.createClass({ this.setState({settings: settings.getAll()}); }, render: function () { - return ( -
-
-
- + return ( +
+
+
+ +
+
-
- ); + ); } }); @@ -44,20 +44,18 @@ var TrafficTable = React.createClass({ flowStore.addChangeListener(this.onFlowsChange); $.getJSON("/flows.json").success(function (flows) { - flows.forEach(function (flow, i) { window.setTimeout(function () { flowStore.addFlow(flow); }, _.random(i*400,i*400+1000)); }); - }.bind(this)); }, componentWillUnmount: function(){ this.state.flowStore.close(); }, onFlowsChange: function(event, flows){ - this.setState({flows: flows.getAll()}); + this.setState({flows: flows.getAll()}); }, render: function () { var flows = this.state.flows.map(function(flow){ -- cgit v1.2.3