Skip to content

Commit

Permalink
Merge pull request #27 from unipept/fix/bugs
Browse files Browse the repository at this point in the history
Fix/bugs
  • Loading branch information
bmesuere authored and GitHub Enterprise committed Aug 28, 2018
2 parents 288df87 + f6e46ff commit 72eeb14
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions dist/unipept-visualizations.es5.js

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

2 changes: 1 addition & 1 deletion dist/unipept-visualizations.es5.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/unipept-visualizations.js

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

2 changes: 1 addition & 1 deletion dist/unipept-visualizations.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/unipept-visualizations.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unipept-visualizations",
"version": "1.7.1",
"version": "1.7.2",
"description": "Unipept visualisation tools",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/shared/maxcountheap.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const comp = (a, b) => b.data.count - a.data.count;

function heapify(data) {
for (let i = Math.floor((data.length - 2) / 2); i >= 0; i--) {
sink(data, comp, i);
sink(data, i);
}
return data;
}
Expand Down
2 changes: 1 addition & 1 deletion src/treeview/treeview.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export default function TreeView(element, data, options = {}) {
}

root.expand(1);
let allowedCount = root.data.count * (isFinite(settings.enableAutoExpand) ? settings.enableAutoExpand : 0.8);
let allowedCount = root.data.count * (Number.isFinite(settings.enableAutoExpand) ? settings.enableAutoExpand : 0.8);
const pq = new MaxCountHeap(root.children || []);
while (allowedCount > 0 && pq.size > 0) {
const toExpand = pq.remove();
Expand Down

0 comments on commit 72eeb14

Please sign in to comment.