Merge vector-2.4 branch back to trunk.
svn merge sandbox/vector-2.4/@2307 sandbox/vector-2.4/@HEAD trunk/openlayers/ git-svn-id: http://svn.openlayers.org/trunk/openlayers@2803 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -227,6 +227,21 @@ OpenLayers.Events.prototype = {
|
||||
}
|
||||
}
|
||||
},
|
||||
// TODO: get rid of this in 3.0
|
||||
// Decide whether listeners should be called in the order they were
|
||||
// registered or in reverse order.
|
||||
registerPriority: function (type, obj, func) {
|
||||
|
||||
if (func != null) {
|
||||
if (obj == null) {
|
||||
obj = this.object;
|
||||
}
|
||||
var listeners = this.listeners[type];
|
||||
if (listeners != null) {
|
||||
listeners.unshift( {obj: obj, func: func} );
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* @param {String} type
|
||||
|
||||
Reference in New Issue
Block a user