From 7a09b8ecec6155af1c73c37f9597970bee3a5519 Mon Sep 17 00:00:00 2001 From: Florian Kraft Date: Mon, 13 Apr 2015 14:26:29 +0200 Subject: [PATCH] use lodash cloneDeep instead of using angular.copy this should resolve a performance issue in the WP details view in the latest Firefox --- frontend/app/work_packages/filters/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/work_packages/filters/index.js b/frontend/app/work_packages/filters/index.js index e058395439..b937fb41a5 100644 --- a/frontend/app/work_packages/filters/index.js +++ b/frontend/app/work_packages/filters/index.js @@ -52,7 +52,7 @@ angular.module('openproject.workPackages.filters') .filter('remainingFilterNames', ['orderByFilter', 'FiltersHelper', function(orderByFilter, FiltersHelper) { function subtractActiveFilters(filters, filtersToSubtract) { - var filterDiff = angular.copy(filters); + var filterDiff = _.cloneDeep(filters); angular.forEach(filtersToSubtract, function(filter) { if(!filter.deactivated) delete filterDiff[filter.name];