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:
@@ -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) );
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user