Handle concrete classes with non implemented abstract methods

This commit is contained in:
Guillaume Beraudo
2017-01-13 23:39:39 +01:00
parent 7a7c01a074
commit b54ea89395
8 changed files with 105 additions and 13 deletions
+3
View File
@@ -109,6 +109,9 @@ if (ol.ENABLE_WEBGL) {
}
var replay = replays[replayType];
if (replay === undefined) {
/**
* @type {Function}
*/
var Constructor = ol.render.webgl.ReplayGroup.BATCH_CONSTRUCTORS_[replayType];
replay = new Constructor(this.tolerance_, this.maxExtent_);
replays[replayType] = replay;