Skip to content

Commit 951f6a0

Browse files
committed
Preventing the last unnecessary paging request to the server
1 parent 401c1c7 commit 951f6a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stream_table.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@
315315
$.getJSON(this.opts.data_url, params).done(function(data){
316316
data = _self.addData(data);
317317

318-
if (params.limit != null && (!data || !data.length ) ) {
318+
if (params.limit != null && (!data || !data.length || data.length < params.limit) ) {
319319
_self.stopStreaming();
320320
}else{
321321
_self.setStreamInterval();

0 commit comments

Comments
 (0)