Skip to content
This repository
Browse code

Limit number of displayed results to 131,000 in example 6. Going to 1…

…32,000 and higher causes FireFox 3.6 rendering engine to break. Closes #23
  • Loading branch information...
commit 889d15d7e68138fe8a156574e922bca4633b67b1 1 parent 431a7b5
Milan Gardian authored mleibman committed

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  slick.remotemodel.js
2  slick.remotemodel.js
@@ -128,7 +128,7 @@ function EventHelper() {
128 128
 
129 129
 		function onSuccess(resp) {
130 130
 			var from = resp.offset, to = resp.offset + resp.count;
131  
-			data.length = parseInt(resp.total);
  131
+			data.length = Math.min(131000, parseInt(resp.total));
132 132
 
133 133
 			for (var i = 0; i < resp.stories.length; i++) {
134 134
 				data[from + i] = resp.stories[i];

0 notes on commit 889d15d

Please sign in to comment.
Something went wrong with that request. Please try again.