From 8da53d8fbd7e6d63673e634ec55aab35e49aa9cf Mon Sep 17 00:00:00 2001 From: crschmidt Date: Thu, 24 Feb 2011 09:37:47 +0000 Subject: [PATCH] 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 --- tests/Handler/Click.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,