Revised version for checking geometry splittable

This commit is contained in:
Peter Robins
2012-01-08 20:08:36 +00:00
parent 5f6bd6acee
commit 9453d0ce7c

View File

@@ -314,7 +314,8 @@ OpenLayers.Control.Split = OpenLayers.Class(OpenLayers.Control, {
isEligible: function(target) { isEligible: function(target) {
return ( return (
target.state !== OpenLayers.State.DELETE target.state !== OpenLayers.State.DELETE
) && (typeof target.geometry.split === "function" ) && (
typeof target.geometry.split === "function"
) && ( ) && (
this.feature !== target this.feature !== target
) && ( ) && (