Skip to content

Commit

Permalink
Limit number of displayed results to 131,000 in example 6. Going to 1…
Browse files Browse the repository at this point in the history
…32,000 and higher causes FireFox 3.6 rendering engine to break. Closes #23
  • Loading branch information
milang authored and mleibman committed Feb 7, 2010
1 parent 431a7b5 commit 889d15d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slick.remotemodel.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function EventHelper() {

function onSuccess(resp) {
var from = resp.offset, to = resp.offset + resp.count;
data.length = parseInt(resp.total);
data.length = Math.min(131000, parseInt(resp.total));

for (var i = 0; i < resp.stories.length; i++) {
data[from + i] = resp.stories[i];
Expand Down

0 comments on commit 889d15d

Please sign in to comment.