Skip to content
This repository has been archived by the owner on Jun 17, 2023. It is now read-only.

Commit

Permalink
d3-collection 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Jun 21, 2017
1 parent 45816e3 commit 0988596
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions d3-collection.v1.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// https://d3js.org/d3-collection/ Version 1.0.3. Copyright 2017 Mike Bostock.
// https://d3js.org/d3-collection/ Version 1.0.4. Copyright 2017 Mike Bostock.
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
Expand Down Expand Up @@ -87,10 +87,10 @@ var nest = function() {
nest;

function apply(array, depth, createResult, setResult) {
if (depth >= keys.length) return rollup != null
? rollup(array) : (sortValues != null
? array.sort(sortValues)
: array);
if (depth >= keys.length) {
if (sortValues != null) array.sort(sortValues);
return rollup != null ? rollup(array) : array;
}

var i = -1,
n = array.length,
Expand Down
4 changes: 2 additions & 2 deletions d3-collection.v1.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0988596

Please sign in to comment.