ol.Object.{on|onOnce|un} type can also be an array of string

This commit is contained in:
Frederic Junod
2013-04-30 15:02:10 +02:00
parent a0340faa63
commit 6366bd05b3

View File

@@ -224,7 +224,7 @@ ol.Object.prototype.notifyInternal_ = function(key) {
/**
* @param {string} type The event type.
* @param {string|Array.<string>} type The event type or array of event types.
* @param {Function} listener The listener function.
* @param {Object=} opt_scope Object is whose scope to call
* the listener.
@@ -236,7 +236,7 @@ ol.Object.prototype.on = function(type, listener, opt_scope) {
/**
* @param {string} type The event type.
* @param {string|Array.<string>} type The event type or array of event types.
* @param {Function} listener The listener function.
* @param {Object=} opt_scope Object is whose scope to call
* the listener.
@@ -311,7 +311,7 @@ ol.Object.prototype.unbind = function(key) {
/**
* @param {string} type The event type.
* @param {string|Array.<string>} type The event type or array of event types.
* @param {Function} listener The listener function.
* @param {Object=} opt_scope Object is whose scope to call
* the listener.