From 3bb2306f7964c59d9e50fb507696310ed4a6cf7e Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Fri, 13 Dec 2013 15:11:59 +0100 Subject: [PATCH] Work around compiler not detecting implementation of abstract methods --- src/ol/view.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/ol/view.js b/src/ol/view.js index 0bacc4fe3a..ffee86ba59 100644 --- a/src/ol/view.js +++ b/src/ol/view.js @@ -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; +}; /**