Skip to content

Commit 7e4640a

Browse files
committed
Removing properties added to global Event.
1 parent 6d959de commit 7e4640a

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

lib/OpenLayers/Events.js

-8
Original file line numberDiff line numberDiff line change
@@ -347,14 +347,6 @@ OpenLayers.Event = {
347347
/* prevent memory leaks in IE */
348348
OpenLayers.Event.observe(window, 'unload', OpenLayers.Event.unloadCache, false);
349349

350-
// FIXME: Remove this in 3.0. In 3.0, Event.stop will no longer be provided
351-
// by OpenLayers.
352-
if (window.Event) {
353-
OpenLayers.Util.applyDefaults(window.Event, OpenLayers.Event);
354-
} else {
355-
var Event = OpenLayers.Event;
356-
}
357-
358350
/**
359351
* Class: OpenLayers.Events
360352
*/

tests/Events.html

-7
Original file line numberDiff line numberDiff line change
@@ -440,13 +440,6 @@
440440
t.eq( events.listeners["doThingA"].length, 1, "event type passed to addEventType correctly does nothing if clashes with already defined event type" );
441441
}
442442

443-
/** HACK HACK HACK Deprecated This test should be removed in 3.0 **/
444-
function test_Events_globalEventObject(t) {
445-
t.plan(1);
446-
t.ok(Event.stop, "a stop() function exists on the global JS Event object, if indeed it exists. This is legacy deprecated and will be gone in 3.0");
447-
}
448-
449-
450443
</script>
451444
</head>
452445
<body>

0 commit comments

Comments
 (0)