From 3cb109fe7053831ea0e7e73fcde229ae9500618f Mon Sep 17 00:00:00 2001 From: euzuro Date: Tue, 16 May 2006 17:04:52 +0000 Subject: [PATCH] if the triggerMapEvent takes a variable 'type', which is coming directly from evt.type, then we might as well keep things consistent and use it in our register function as well git-svn-id: http://svn.openlayers.org/trunk/openlayers@35 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Events.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/OpenLayers/Events.js b/lib/OpenLayers/Events.js index 6e85b244b7..691d88f429 100644 --- a/lib/OpenLayers/Events.js +++ b/lib/OpenLayers/Events.js @@ -41,12 +41,12 @@ OpenLayers.Events.prototype = { }, /** - * @param {str} eventName + * @param {str} type * @param {Object} obj * @param {Function} func */ - register: function (eventName, obj, func) { - var listeners = this.listeners[eventName]; + register: function (type, obj, func) { + var listeners = this.listeners[type]; listeners.push( func.bindAsEventListener(obj) ); },