From 27d9014e9011cfeb98198926b34c88e99e77c837 Mon Sep 17 00:00:00 2001 From: Gunther Brunner Date: Tue, 3 Jun 2014 17:59:01 +0900 Subject: [PATCH] `const` was just too new for IE. --- res/app/components/stf/logcat-table/logcat-table-directive.js | 2 +- res/app/components/stf/logcat/logcat-service.js | 2 +- .../control-panes/dashboard/navigation/navigation-controller.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/res/app/components/stf/logcat-table/logcat-table-directive.js b/res/app/components/stf/logcat-table/logcat-table-directive.js index 21cfa80d..937819af 100644 --- a/res/app/components/stf/logcat-table/logcat-table-directive.js +++ b/res/app/components/stf/logcat-table/logcat-table-directive.js @@ -12,7 +12,7 @@ module.exports = function logcatTableDirective($rootScope, $timeout, LogcatServi var scrollHeight = 0 var parent = element[0] var body = element.find('tbody')[0] - const maxEntriesBuffer = 3000 + var maxEntriesBuffer = 3000 var numberOfEntries = 0 function incrementNumberEntry() { diff --git a/res/app/components/stf/logcat/logcat-service.js b/res/app/components/stf/logcat/logcat-service.js index 91cceb09..7033062d 100644 --- a/res/app/components/stf/logcat/logcat-service.js +++ b/res/app/components/stf/logcat/logcat-service.js @@ -115,7 +115,7 @@ module.exports = function LogcatServiceFactory(socket, DeviceService, FilterStri } function filterLine(line) { - const enabled = true + var enabled = true var filters = service.filters var matched = true diff --git a/res/app/control-panes/dashboard/navigation/navigation-controller.js b/res/app/control-panes/dashboard/navigation/navigation-controller.js index b75dd041..2e1bc9ce 100644 --- a/res/app/control-panes/dashboard/navigation/navigation-controller.js +++ b/res/app/control-panes/dashboard/navigation/navigation-controller.js @@ -5,7 +5,7 @@ module.exports = function NavigationCtrl($scope, $rootScope) { $scope.urlHistory = [] function addToHistory() { - const HISTORY_LIMIT = 20 + var HISTORY_LIMIT = 20 var history = $scope.urlHistory history.unshift($scope.textURL)