From 671539c9b3120e1f88904dda8f2d61691c8b9d17 Mon Sep 17 00:00:00 2001 From: follower Date: Fri, 26 May 2006 04:01:14 +0000 Subject: [PATCH] This modification works around an issue between Prototype.js and ShrinkSafe where it gets confused by a parameter and a local variable having the same name. This work around makes the build/compression script *much* less complex and more reliable. TODO: Submit bug report to ShrinkSafe. git-svn-id: http://svn.openlayers.org/trunk/openlayers@394 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/Prototype.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Prototype.js b/lib/Prototype.js index 0e85338bab..07baf10309 100644 --- a/lib/Prototype.js +++ b/lib/Prototype.js @@ -1517,8 +1517,8 @@ Object.extend(Event, { Event.observers = false; }, - observe: function(element, name, observer, useCapture) { - var element = $(element); + observe: function(elementParam, name, observer, useCapture) { + var element = $(elementParam); useCapture = useCapture || false; if (name == 'keypress' && @@ -1529,8 +1529,8 @@ Object.extend(Event, { this._observeAndCache(element, name, observer, useCapture); }, - stopObserving: function(element, name, observer, useCapture) { - var element = $(element); + stopObserving: function(elementParam, name, observer, useCapture) { + var element = $(elementParam); useCapture = useCapture || false; if (name == 'keypress' && @@ -1778,4 +1778,4 @@ if (/Konqueror|Safari|KHTML/.test(navigator.userAgent)) { return [valueL, valueT]; } -} \ No newline at end of file +}