Skip to content

Commit

Permalink
Supply correct start param for insertElements in onDataPush (#6008)
Browse files Browse the repository at this point in the history
  • Loading branch information
kurkle authored and simonbrunel committed Jan 25, 2019
1 parent 7c0ad5a commit 05e9627
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/core.datasetController.js
Expand Up @@ -319,7 +319,8 @@ helpers.extend(DatasetController.prototype, {
* @private
*/
onDataPush: function() {
this.insertElements(this.getDataset().data.length - 1, arguments.length);
var count = arguments.length;
this.insertElements(this.getDataset().data.length - count, count);
},

/**
Expand Down

0 comments on commit 05e9627

Please sign in to comment.