diff --git a/tests/Handler/Click.html b/tests/Handler/Click.html
index db33b5f656..320c6e5ebe 100644
--- a/tests/Handler/Click.html
+++ b/tests/Handler/Click.html
@@ -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,