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
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user