Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
NeXTs committed Jul 29, 2015
1 parent 8bcc18a commit cf19db0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions clusterize.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Clusterize.js - v0.8.2 - 2015-07-03
/*! Clusterize.js - v0.8.3 - 2015-07-30
* http://NeXTs.github.com/Clusterize.js/
* Copyright (c) 2015 Denis Lukov; Licensed MIT */

Expand Down Expand Up @@ -82,12 +82,12 @@

// adding scroll handler
var last_cluster = false,
scrollEv = function(e) {
scrollEv = function() {
if (last_cluster != (last_cluster = self.getClusterNum()))
self.insertToDOM(rows, cache);
},
resize_debounce = 0,
resizeEv = function(e) {
resizeEv = function() {
clearTimeout(resize_debounce);
resize_debounce = setTimeout(self.refresh, 100);
}
Expand Down Expand Up @@ -202,7 +202,7 @@
if( ! opts.cluster_height) {
this.exploreEnvironment(rows);
}
var items_start = cluster_num * opts.rows_in_cluster - opts.rows_in_block * cluster_num,
var items_start = (opts.rows_in_cluster - opts.rows_in_block) * cluster_num,
items_start = items_start > 0 ? items_start : 0,
items_end = items_start + opts.rows_in_cluster,
top_space = items_start * opts.item_height,
Expand Down Expand Up @@ -245,9 +245,9 @@
var content_elem = this.content_elem;
if(ie && ie <= 9 && this.options.tag == 'tr') {
var div = document.createElement('div'), last;
div.innerHTML = '<table><tbody>' + data + '</tbody></table>'
div.innerHTML = '<table><tbody>' + data + '</tbody></table>';
while((last = content_elem.lastChild)) {
content_elem.removeChild(last)
content_elem.removeChild(last);
}
var rows_nodes = this.getChildNodes(div.firstChild.firstChild);
while (rows_nodes.length) {
Expand Down
8 changes: 4 additions & 4 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.8.2",
"version": "0.8.3",
"description": "Tiny vanilla JS plugin to display large data sets easily",
"main": "clusterize.js",
"style": "clusterize.css",
Expand Down

0 comments on commit cf19db0

Please sign in to comment.