[OpenLayers-Commits] r11387 - trunk/openlayers/tests/Handler
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Thu Feb 24 04:37:48 EST 2011
Author: crschmidt
Date: 2011-02-24 01:37:47 -0800 (Thu, 24 Feb 2011)
New Revision: 11387
Modified:
trunk/openlayers/tests/Handler/Click.html
Log:
Better mocking of the function calls on handlers so that handlers which
expect an evt object don't get errors when activating.
Modified: trunk/openlayers/tests/Handler/Click.html
===================================================================
--- trunk/openlayers/tests/Handler/Click.html 2011-02-24 09:37:14 UTC (rev 11386)
+++ trunk/openlayers/tests/Handler/Click.html 2011-02-24 09:37:47 UTC (rev 11387)
@@ -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,
More information about the Commits
mailing list