Magic Search is firing multiple checkFacets event

On removeFacet, magic-search is emitting 2 checkFacets
event instead of just one

Change-Id: I5e35bb25c56b97294deacab68a543511dd40ad12
Partial-Bug: #1496627
This commit is contained in:
Rajat Vig 2015-09-25 12:58:52 -07:00
parent a2c1e79cde
commit fc1220d53c

View File

@ -204,9 +204,6 @@
var currentSearch = angular.copy($scope.currentSearch); var currentSearch = angular.copy($scope.currentSearch);
$scope.currentSearch = []; $scope.currentSearch = [];
$scope.initFacets(currentSearch); $scope.initFacets(currentSearch);
// broadcast to check facets for server-side
$scope.$emit('checkFacets', $scope.currentSearch);
}; };
$scope.emitQuery(); $scope.emitQuery();