From 6366bd05b3b207a07c497113a7908f1a73d3c902 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Tue, 30 Apr 2013 15:02:10 +0200 Subject: [PATCH] ol.Object.{on|onOnce|un} type can also be an array of string --- src/ol/object.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ol/object.js b/src/ol/object.js index 6b698c773f..917ec9f24d 100644 --- a/src/ol/object.js +++ b/src/ol/object.js @@ -224,7 +224,7 @@ ol.Object.prototype.notifyInternal_ = function(key) { /** - * @param {string} type The event type. + * @param {string|Array.} 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.} 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.} 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.