Work around compiler not detecting implementation of abstract methods
This commit is contained in:
+10
-2
@@ -47,13 +47,21 @@ ol.View.prototype.getHints = function() {
|
|||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
*/
|
*/
|
||||||
ol.View.prototype.getView2D = goog.abstractMethod;
|
ol.View.prototype.getView2D = function() {
|
||||||
|
// FIXME for some reason, we can't use goog.abstractMethod here
|
||||||
|
goog.asserts.fail();
|
||||||
|
return null;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
*/
|
*/
|
||||||
ol.View.prototype.getView3D = goog.abstractMethod;
|
ol.View.prototype.getView3D = function() {
|
||||||
|
// FIXME for some reason, we can't use goog.abstractMethod here
|
||||||
|
goog.asserts.fail();
|
||||||
|
return null;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user