Better mocking of the function calls on handlers so that handlers which
expect an evt object don't get errors when activating. git-svn-id: http://svn.openlayers.org/trunk/openlayers@11387 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -50,7 +50,8 @@
|
|||||||
map: map
|
map: map
|
||||||
};
|
};
|
||||||
map.events.registerPriority = function(type, obj, func) {
|
map.events.registerPriority = function(type, obj, func) {
|
||||||
var r = func();
|
var f = OpenLayers.Function.bind(func, obj)
|
||||||
|
var r = f({xy:null});
|
||||||
if(typeof r == "string") {
|
if(typeof r == "string") {
|
||||||
// this is one of the mock handler methods
|
// this is one of the mock handler methods
|
||||||
t.eq(OpenLayers.Util.indexOf(nonevents, type), -1,
|
t.eq(OpenLayers.Util.indexOf(nonevents, type), -1,
|
||||||
|
|||||||
Reference in New Issue
Block a user