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
+1 -1
View File
@@ -331,7 +331,7 @@ ol.Map = function(options) {
* @type {ol.renderer.Map}
* @private
*/
this.renderer_ = new optionsInternal.rendererConstructor(this.viewport_, this);
this.renderer_ = new /** @type {Function} */ (optionsInternal.rendererConstructor)(this.viewport_, this);
/**
* @type {function(Event)|undefined}