Skip to content

Commit

Permalink
Fixed #40
Browse files Browse the repository at this point in the history
  • Loading branch information
NeXTs committed Aug 8, 2015
1 parent 13de88c commit e53002c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions clusterize.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Clusterize.js - v0.10.1 - 2015-08-08
/*! Clusterize.js - v0.11.0 - 2015-08-08
* http://NeXTs.github.com/Clusterize.js/
* Copyright (c) 2015 Denis Lukov; Licensed MIT */

Expand Down Expand Up @@ -187,7 +187,7 @@
},
// get current cluster number
getClusterNum: function () {
return Math.floor(this.scroll_elem.scrollTop / (this.options.cluster_height - this.options.block_height));
return Math.floor(this.scroll_elem.scrollTop / (this.options.cluster_height - this.options.block_height)) || 0;
},
// generate empty row if no data provided
generateEmptyRow: function() {
Expand Down
6 changes: 3 additions & 3 deletions clusterize.min.js

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clusterize.js",
"version": "0.10.1",
"version": "0.11.0",
"description": "Tiny vanilla JS plugin to display large data sets easily",
"main": "clusterize.js",
"style": "clusterize.css",
Expand Down

0 comments on commit e53002c

Please sign in to comment.