Work around compiler not detecting implementation of abstract methods

This commit is contained in:
Tom Payne
2013-12-13 15:11:59 +01:00
parent 0b1a2325cd
commit 3bb2306f79

View File

@@ -47,13 +47,21 @@ ol.View.prototype.getHints = function() {
/**
* @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
*/
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;
};
/**