Ticket #880 (closed bug: fixed)
Event object conflict
| Reported by: | euzuro | Owned by: | crschmidt |
|---|---|---|---|
| Priority: | major | Milestone: | 2.5 Release |
| Component: | Events | Version: | 2.4 |
| Keywords: | Cc: | ||
| State: |
Description
As reported by Paul S to dev@
As part of removing prototype.js
dependency, it appears that you have kept most of Prototype's event
handling code, including the following (lines 327-331 of Events.js):
if (window.Event) {
OpenLayers.Util.extend(window.Event, OpenLayers.Event);
} else {
var Event = OpenLayers.Event;
}
If you include OpenLayers.js AFTER including prototype.js, this
effectively replaces most of prototype's Event object with the
OpenLayers.Event object, which has undesirable results (i.e. calling
Event.observe is actually calling OpenLayers.Event.observe)
Is there a particular reason why we are putting OpenLayers.Event into
the global namespace?
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

