Browse Source

No longer throw Error when MAX_REDRAWS count has been exceeded.

Throwing this error was introduced recently, but appears to have been unintentionally committed (since the error message isn't helpful/relevant, and because the unexpected Error will unnecessarily disrupt the display of the timeline if not caught).
v3_develop
Ben Brichetti 9 years ago
parent
commit
d08e11af32
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      lib/timeline/Core.js

+ 1
- 2
lib/timeline/Core.js View File

@ -614,8 +614,7 @@ Core.prototype.redraw = function() {
this.redraw();
}
else {
console.log('WARNING: infinite loop in redraw?')
throw new Error("bla")
console.log('WARNING: infinite loop in redraw?');
}
this.redrawCount = 0;
}

Loading…
Cancel
Save