Skip to content

Commit

Permalink
Added parameter to .refresh function to force update processing. Closes
Browse files Browse the repository at this point in the history
  • Loading branch information
NeXTs committed Oct 7, 2016
1 parent 8838614 commit d6b8206
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions clusterize.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Clusterize.js - v0.17.1 - 2016-09-15
/*! Clusterize.js - v0.17.2 - 2016-10-07
* http://NeXTs.github.com/Clusterize.js/
* Copyright (c) 2015 Denis Lukov; Licensed GPLv3 */

Expand Down Expand Up @@ -106,8 +106,8 @@
off('resize', window, resizeEv);
self.html((clean ? self.generateEmptyRow() : rows).join(''));
}
self.refresh = function() {
self.getRowsHeight(rows) && self.update(rows);
self.refresh = function(force) {
if(self.getRowsHeight(rows) || force) self.update(rows);
}
self.update = function(new_rows) {
rows = isArray(new_rows)
Expand Down
4 changes: 2 additions & 2 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.17.1",
"version": "0.17.2",
"description": "Tiny vanilla JS plugin to display large data sets easily",
"main": "clusterize.js",
"style": "clusterize.css",
Expand Down

0 comments on commit d6b8206

Please sign in to comment.