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:
crschmidt
2011-02-24 09:37:47 +00:00
parent 6b54f9e80a
commit 8da53d8fbd

View File

@@ -50,7 +50,8 @@
map: map
};
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") {
// this is one of the mock handler methods
t.eq(OpenLayers.Util.indexOf(nonevents, type), -1,