Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerome Sadi committed Jun 21, 2018
1 parent 62503d6 commit ef8858f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/vis-timeline-graph2d.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/vis.js
Original file line number Diff line number Diff line change
Expand Up @@ -10412,13 +10412,13 @@ Core.prototype._redraw = function () {
this.components.forEach(function (component) {
resized = component.redraw() || resized;
});
var MAX_REDRAW = 5;
var MAX_REDRAW = 2;
if (resized) {
if (this.redrawCount < MAX_REDRAW) {
this.body.emitter.emit('_change');
return;
} else {
console.log('WARNING: infinite loop in redraw?');
console.log('WARNING: infinite loop in redraw? ...');
}
} else {
this.redrawCount = 0;
Expand Down
2 changes: 1 addition & 1 deletion dist/vis.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vis.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/timeline/Core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1005,14 +1005,14 @@ Core.prototype._redraw = function() {
this.components.forEach(function (component) {
resized = component.redraw() || resized;
});
var MAX_REDRAW = 5;
var MAX_REDRAW = 2;
if (resized) {
if (this.redrawCount < MAX_REDRAW) {
this.body.emitter.emit('_change');
return;
}
else {
console.log('WARNING: infinite loop in redraw?');
console.log('WARNING: infinite loop in redraw? ...');
}
} else {
this.redrawCount = 0;
Expand Down

0 comments on commit ef8858f

Please sign in to comment.