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
This commit is contained in:
euzuro
2006-05-16 17:04:52 +00:00
parent a9b696d000
commit 3cb109fe70
+3 -3
View File
@@ -41,12 +41,12 @@ OpenLayers.Events.prototype = {
}, },
/** /**
* @param {str} eventName * @param {str} type
* @param {Object} obj * @param {Object} obj
* @param {Function} func * @param {Function} func
*/ */
register: function (eventName, obj, func) { register: function (type, obj, func) {
var listeners = this.listeners[eventName]; var listeners = this.listeners[type];
listeners.push( func.bindAsEventListener(obj) ); listeners.push( func.bindAsEventListener(obj) );
}, },