Add ol.Observable#getRevision
This commit is contained in:
@@ -15,12 +15,27 @@ goog.require('goog.events.EventTarget');
|
|||||||
* @todo stability experimental
|
* @todo stability experimental
|
||||||
*/
|
*/
|
||||||
ol.Observable = function() {
|
ol.Observable = function() {
|
||||||
|
|
||||||
goog.base(this);
|
goog.base(this);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
* @type {number}
|
||||||
|
*/
|
||||||
|
this.revision_ = 0;
|
||||||
|
|
||||||
};
|
};
|
||||||
goog.inherits(ol.Observable, goog.events.EventTarget);
|
goog.inherits(ol.Observable, goog.events.EventTarget);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {number} Revision.
|
||||||
|
*/
|
||||||
|
ol.Observable.prototype.getRevision = function() {
|
||||||
|
return this.revision_;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Listen for a certain type of event.
|
* Listen for a certain type of event.
|
||||||
* @param {string|Array.<string>} type The event type or array of event types.
|
* @param {string|Array.<string>} type The event type or array of event types.
|
||||||
|
|||||||
Reference in New Issue
Block a user