Add ol.Observable#getRevision
This commit is contained in:
1 parent
b4c3db273a
commit
0219ddc60f
1 file changed
+15
@@ -15,12 +15,27 @@ goog.require('goog.events.EventTarget');
|
||||
* @todo stability experimental
|
||||
*/
|
||||
ol.Observable = function() {
|
||||
|
||||
goog.base(this);
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {number}
|
||||
*/
|
||||
this.revision_ = 0;
|
||||
|
||||
};
|
||||
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.
|
||||
* @param {string|Array.<string>} type The event type or array of event types.
|
||||
|
||||
Reference in new issue
Block a user