Merge pull request #3449 from gberaudo/fix_replay_assert

Fix assertion message
This commit is contained in:
Bart van den Eijnden
2015-04-01 11:42:30 +02:00
2 changed files with 4 additions and 2 deletions

View File

@@ -2005,7 +2005,8 @@ ol.render.canvas.ReplayGroup.prototype.getReplay =
if (!goog.isDef(replay)) {
var Constructor = ol.render.canvas.BATCH_CONSTRUCTORS_[replayType];
goog.asserts.assert(goog.isDef(Constructor),
'Constructor should be defined');
replayType +
' constructor missing from ol.render.canvas.BATCH_CONSTRUCTORS_');
replay = new Constructor(this.tolerance_, this.maxExtent_,
this.resolution_);
replays[replayType] = replay;

View File

@@ -1085,7 +1085,8 @@ ol.render.webgl.ReplayGroup.prototype.getReplay =
if (!goog.isDef(replay)) {
var constructor = ol.render.webgl.BATCH_CONSTRUCTORS_[replayType];
goog.asserts.assert(goog.isDef(constructor),
'a constructor could be found in ol.render.webgl.BATCH_CONSTRUCTORS_');
replayType +
' constructor missing from ol.render.webgl.BATCH_CONSTRUCTORS_');
replay = new constructor(this.tolerance_, this.maxExtent_);
this.replays_[replayType] = replay;
}