From f38b89a582c6e066f2b6d354b7ca47684ed92e27 Mon Sep 17 00:00:00 2001 From: slhale Date: Thu, 13 Aug 2015 16:56:58 -0700 Subject: [PATCH] [Search] style --- platform/search/src/controllers/SearchController.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/platform/search/src/controllers/SearchController.js b/platform/search/src/controllers/SearchController.js index d23fc69182..17bc277f1e 100644 --- a/platform/search/src/controllers/SearchController.js +++ b/platform/search/src/controllers/SearchController.js @@ -184,7 +184,8 @@ define(function () { * Re-filters the search restuls. Called when ngModel.checked changes. */ updateOptions: function () { - var type; + var type, + i; // Update all-checked status $scope.ngModel.checkAll = true; @@ -203,8 +204,6 @@ define(function () { // Update the current filters string $scope.filtersString = ''; if ($scope.ngModel.checkAll !== true) { - var i; - for (i = 0; i < types.length; i += 1) { // If the type key corresponds to a checked option... if ($scope.ngModel.checked[types[i].key]) {