Fix assertion message

This commit is contained in:
Guillaume Beraudo
2015-04-01 11:28:17 +02:00
parent 62ce9b44c8
commit 7765d7304c
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;