Skip to content

Commit

Permalink
Removed default value for groupReaders
Browse files Browse the repository at this point in the history
  • Loading branch information
ellenaua committed Apr 18, 2018
1 parent bb83e45 commit 6135f4f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions moment-timezone-utils.js
Expand Up @@ -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++) {
Expand All @@ -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);
Expand All @@ -208,7 +208,7 @@
}
}

function createLinks (source, groupLeaders = {}) {
function createLinks (source, groupLeaders) {
var zones = [],
links = [];

Expand Down Expand Up @@ -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 = [],
Expand Down

0 comments on commit 6135f4f

Please sign in to comment.