From 6135f4f78ea034cb3661ebcdd3cf37df275d3557 Mon Sep 17 00:00:00 2001 From: ellenaua Date: Wed, 18 Apr 2018 04:58:05 +0300 Subject: [PATCH] Removed default value for groupReaders --- moment-timezone-utils.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/moment-timezone-utils.js b/moment-timezone-utils.js index e48fd844..1879599f 100644 --- a/moment-timezone-utils.js +++ b/moment-timezone-utils.js @@ -172,7 +172,7 @@ return arraysAreEqual(a.offsets, b.offsets) && arraysAreEqual(a.abbrs, b.abbrs) && arraysAreEqual(a.untils, b.untils); } - function findAndCreateLinks (input, output, links, groupLeaders = {}) { + function findAndCreateLinks (input, output, links, groupLeaders) { var i, j, a, b, group, foundGroup, groups = []; for (i = 0; i < input.length; i++) { @@ -185,7 +185,7 @@ if (zonesAreEqual(a, b)) { if (a.population > b.population) { group.unshift(a); - } else if (a.population === b.population && groupLeaders[a.name]) { + } else if (a.population === b.population && groupLeaders && groupLeaders[a.name]) { group.unshift(a); } else { group.push(a); @@ -208,7 +208,7 @@ } } - function createLinks (source, groupLeaders = {}) { + function createLinks (source, groupLeaders) { var zones = [], links = []; @@ -281,7 +281,7 @@ Filter, Link, and Pack ************************************/ - function filterLinkPack (input, start, end, groupLeaders = {}) { + function filterLinkPack (input, start, end, groupLeaders) { var i, inputZones = input.zones, outputZones = [],