Rename onOnce to once (see #678)

This commit is contained in:
Tim Schaub
2013-04-30 14:58:39 -06:00
parent 59a4155651
commit ffe9105891
3 changed files with 3 additions and 3 deletions

View File

@@ -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);
};