From d8a097a95a030ad63ce84f8d2ec535cb9b3783fe Mon Sep 17 00:00:00 2001 From: Henry Date: Thu, 26 May 2016 16:46:06 -0700 Subject: [PATCH] [Tables] Added timeouts to yield control to ui thread. Fixes #972 --- platform/features/table/bundle.js | 2 +- .../table/res/templates/historical-table.html | 2 +- .../controllers/HistoricalTableController.js | 58 ++++++++++++++++--- 3 files changed, 53 insertions(+), 9 deletions(-) diff --git a/platform/features/table/bundle.js b/platform/features/table/bundle.js index cdcb6603d9..f16cda0d8a 100644 --- a/platform/features/table/bundle.js +++ b/platform/features/table/bundle.js @@ -109,7 +109,7 @@ define([ { "key": "HistoricalTableController", "implementation": HistoricalTableController, - "depends": ["$scope", "telemetryHandler", "telemetryFormatter"] + "depends": ["$scope", "telemetryHandler", "telemetryFormatter", "$timeout", "$q"] }, { "key": "RealtimeTableController", diff --git a/platform/features/table/res/templates/historical-table.html b/platform/features/table/res/templates/historical-table.html index 9917c41dcc..603569f1d1 100644 --- a/platform/features/table/res/templates/historical-table.html +++ b/platform/features/table/res/templates/historical-table.html @@ -1,4 +1,4 @@ -
+