From 95206bdeae91123bcb0091e9deaec774e32b81be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Tue, 3 Mar 2009 12:45:24 +0000 Subject: [PATCH] enable programmatically calling the clickFeature metod of the select feature control, r=crschmidt (closes #1449) git-svn-id: http://svn.openlayers.org/trunk/openlayers@8944 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Control/SelectFeature.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/OpenLayers/Control/SelectFeature.js b/lib/OpenLayers/Control/SelectFeature.js index b5cfb52a3f..a982a2f30a 100644 --- a/lib/OpenLayers/Control/SelectFeature.js +++ b/lib/OpenLayers/Control/SelectFeature.js @@ -260,7 +260,8 @@ OpenLayers.Control.SelectFeature = OpenLayers.Class(OpenLayers.Control, { * {Boolean} Allow for multiple selected features. */ multipleSelect: function() { - return this.multiple || this.handlers.feature.evt[this.multipleKey]; + return this.multiple || (this.handlers.feature.evt && + this.handlers.feature.evt[this.multipleKey]); }, /** @@ -272,7 +273,8 @@ OpenLayers.Control.SelectFeature = OpenLayers.Class(OpenLayers.Control, { * {Boolean} Toggle the selected state of a feature. */ toggleSelect: function() { - return this.toggle || this.handlers.feature.evt[this.toggleKey]; + return this.toggle || (this.handlers.feature.evt && + this.handlers.feature.evt[this.toggleKey]); }, /**