Add ol.Object#unByKey
This commit is contained in:
@@ -309,6 +309,14 @@ ol.Object.prototype.un = function(type, listener, opt_scope) {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {?number} key Key.
|
||||
*/
|
||||
ol.Object.prototype.unByKey = function(key) {
|
||||
goog.events.unlistenByKey(key);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Removes all bindings.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user