Rename onOnce to once (see #678)
This commit is contained in:
@@ -242,7 +242,7 @@ ol.Object.prototype.on = function(type, listener, opt_scope) {
|
||||
* the listener.
|
||||
* @return {?number} Unique key for the listener.
|
||||
*/
|
||||
ol.Object.prototype.onOnce = function(type, listener, opt_scope) {
|
||||
ol.Object.prototype.once = function(type, listener, opt_scope) {
|
||||
return goog.events.listenOnce(this, type, listener, false, opt_scope);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user