Define isDef on ol.IView2D, ol.IView3D and ol.View

This commit is contained in:
Tom Payne
2013-12-13 15:11:23 +01:00
parent 0ed59f7be3
commit 0b1a2325cd
4 changed files with 31 additions and 0 deletions

View File

@@ -25,3 +25,10 @@ ol.IView.prototype.getView2D = function() {
*/ */
ol.IView.prototype.getView3D = function() { ol.IView.prototype.getView3D = function() {
}; };
/**
* @return {boolean} Is defined.
*/
ol.IView.prototype.isDef = function() {
};

View File

@@ -59,3 +59,10 @@ ol.IView2D.prototype.getRotation = function() {
*/ */
ol.IView2D.prototype.getView2DState = function() { ol.IView2D.prototype.getView2DState = function() {
}; };
/**
* @return {boolean} Is defined.
*/
ol.IView2D.prototype.isDef = function() {
};

View File

@@ -8,3 +8,10 @@ goog.provide('ol.IView3D');
*/ */
ol.IView3D = function() { ol.IView3D = function() {
}; };
/**
* @return {boolean} Is defined.
*/
ol.IView3D.prototype.isDef = function() {
};

View File

@@ -56,6 +56,16 @@ ol.View.prototype.getView2D = goog.abstractMethod;
ol.View.prototype.getView3D = goog.abstractMethod; ol.View.prototype.getView3D = goog.abstractMethod;
/**
* @inheritDoc
*/
ol.View.prototype.isDef = function() {
// FIXME for some reason, we can't use goog.abstractMethod here
goog.asserts.fail();
return false;
};
/** /**
* @param {ol.ViewHint} hint Hint. * @param {ol.ViewHint} hint Hint.
* @param {number} delta Delta. * @param {number} delta Delta.