зеркало из https://github.com/mozilla/treeherder.git
Bug 1467451 - Convert lodash .pick() to native ES6 (#3644)
This commit is contained in:
Родитель
d101789232
Коммит
4ccadb29f4
|
@ -464,10 +464,9 @@ treeherderApp.controller('MainCtrl', [
|
|||
};
|
||||
|
||||
const getNewReloadTriggerParams = function () {
|
||||
return _.pick(
|
||||
$location.search(),
|
||||
ThResultSetStore.reloadOnChangeParameters,
|
||||
);
|
||||
const locationSearch = $location.search();
|
||||
return ThResultSetStore.reloadOnChangeParameters.reduce(
|
||||
(acc, prop) => (locationSearch[prop] ? { ...acc, [prop]: locationSearch[prop] } : acc), {});
|
||||
};
|
||||
|
||||
$scope.toggleFieldFilterVisible = function () {
|
||||
|
|
|
@ -66,7 +66,9 @@ treeherder.factory('ThResultSetStore', [
|
|||
|
||||
// these params will be passed in each time we poll to remain
|
||||
// within the constraints of the URL params
|
||||
var rsPollingParams = _.pick($location.search(), rsPollingKeys);
|
||||
const locationSearch = $location.search();
|
||||
var rsPollingParams = rsPollingKeys.reduce(
|
||||
(acc, prop) => (locationSearch[prop] ? { ...acc, [prop]: locationSearch[prop] } : acc), {});
|
||||
|
||||
// Register push poller if it's not registered
|
||||
var pushPoller = $interval(function () {
|
||||
|
|
Загрузка…
Ссылка в новой задаче