From 64c455cb7de6a18a6898437915282bf82be6970b Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Wed, 11 Jul 2007 17:43:07 +0000 Subject: [PATCH] temporarily store the original initialize instead of tacking anything extra on to the handler's prototype - thanks for the catch Erik - I'm trashing the oldInit just so we don't end up with any more unexpected prototype modifications elsewhere in the test git-svn-id: http://svn.openlayers.org/trunk/openlayers@3701 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/Handler/test_Drag.html | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/Handler/test_Drag.html b/tests/Handler/test_Drag.html index 19706372db..efd0ec76d6 100644 --- a/tests/Handler/test_Drag.html +++ b/tests/Handler/test_Drag.html @@ -9,8 +9,7 @@ var callbacks = {foo: "bar"}; var options = {bar: "foo"}; - OpenLayers.Handler.prototype._initialize = - OpenLayers.Handler.prototype.initialize; + var oldInit = OpenLayers.Handler.prototype.initialize; OpenLayers.Handler.prototype.initialize = function(con, call, opt) { t.eq(con.id, control.id, @@ -22,9 +21,7 @@ } var drag = new OpenLayers.Handler.Drag(control, callbacks, options); - OpenLayers.Handler.prototype.initialize = - OpenLayers.Handler.prototype._initialize; - + OpenLayers.Handler.prototype.initialize = oldInit; } function test_Handler_Drag_activate(t) {