From 72e2280c8748b17b703f674b0e18761d0b3e40a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Junod?= Date: Thu, 1 Jul 2010 09:46:32 +0000 Subject: [PATCH] don't use the deprecated bind function git-svn-id: http://svn.openlayers.org/trunk/openlayers@10442 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/Control/LayerSwitcher.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Control/LayerSwitcher.html b/tests/Control/LayerSwitcher.html index 9c4d248736..e058d6bbcb 100644 --- a/tests/Control/LayerSwitcher.html +++ b/tests/Control/LayerSwitcher.html @@ -105,7 +105,7 @@ t.ok(true, "redraw called when setting vis"); } map.addControl(control); - var func = myredraw.bind(control); + var func = OpenLayers.Function.bind(myredraw, control); func(); markers.setVisibility(false); t.eq(control.checkRedraw(), true, "check redraw is true after changing layer and not letting redraw happen."); @@ -117,7 +117,7 @@ t.ok(true, "redraw called when setting inRange"); } map.addControl(control); - var func = myredraw.bind(control); + var func = OpenLayers.Function.bind(myredraw, control); func(); markers.inRange = false; t.eq(control.checkRedraw(), true, "check redraw is true after changing layer.inRange and not letting redraw happen."); @@ -130,7 +130,7 @@ } map.addControl(control); - var func = myredraw.bind(control); + var func = OpenLayers.Function.bind(myredraw, control); func(); map.raiseLayer(layer, 1); t.eq(control.checkRedraw(), true, "check redraw is true after changing layer.inRange and not letting redraw happen.");