From 8647addda23e5435dee00714d19c2d83f8c8eea4 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Tue, 3 Apr 2007 22:57:26 +0000 Subject: [PATCH] #629 - remove events from geometry git-svn-id: http://svn.openlayers.org/trunk/openlayers@2997 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Geometry.js | 7 ------- tests/test_Geometry.html | 10 +--------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/lib/OpenLayers/Geometry.js b/lib/OpenLayers/Geometry.js index 75d8d4210f..23874b3815 100644 --- a/lib/OpenLayers/Geometry.js +++ b/lib/OpenLayers/Geometry.js @@ -27,9 +27,6 @@ OpenLayers.Geometry.prototype = { * * @type OpenLayers.Feature */ feature: null, - - /** @type OpenLayers.Events */ - events:null, /** * @constructor @@ -47,10 +44,6 @@ OpenLayers.Geometry.prototype = { this.bounds = null; this.feature = null; - if (this.events) { - this.events.destroy(); - } - this.events = null; }, /** diff --git a/tests/test_Geometry.html b/tests/test_Geometry.html index 443cb8d33c..8919ae6d31 100644 --- a/tests/test_Geometry.html +++ b/tests/test_Geometry.html @@ -178,19 +178,13 @@ } function test_99_Geometry_destroy(t) { - t.plan( 5 ); + t.plan( 3 ); var g = new OpenLayers.Geometry(); g.bounds = new OpenLayers.Bounds(); g.feature = new Object(); - g.events = { - 'destroy': function() { - g_events_destroy = {}; - } - }; g_style_destroy = null; - g_events_destroy = {}; g.destroy(); t.eq(g.id, null, "id nullified"); @@ -198,8 +192,6 @@ t.eq(g.bounds, null, "bounds nullified"); t.eq(g.feature, null, "feature reference nullified"); - t.ok(g_events_destroy != null, "events.destroy() called on non-null events"); - t.eq(g.events, null, "events nullified"); }