[OpenLayers-Commits] r5662 - sandbox/topp/nymap/lib/OpenLayers

commits at openlayers.org commits at openlayers.org
Sun Jan 6 19:26:54 EST 2008


Author: tcoulter
Date: 2008-01-06 19:26:54 -0500 (Sun, 06 Jan 2008)
New Revision: 5662

Modified:
   sandbox/topp/nymap/lib/OpenLayers/Feature.js
Log:
Edited the isSaved method to handle the REMOVED state.

Modified: sandbox/topp/nymap/lib/OpenLayers/Feature.js
===================================================================
--- sandbox/topp/nymap/lib/OpenLayers/Feature.js	2008-01-07 00:12:02 UTC (rev 5661)
+++ sandbox/topp/nymap/lib/OpenLayers/Feature.js	2008-01-07 00:26:54 UTC (rev 5662)
@@ -222,7 +222,8 @@
     isSaved: function() {
         return this.state != OpenLayers.State.UPDATE &&
                this.state != OpenLayers.State.DELETE &&
-               this.state != OpenLayers.State.INSERT;
+               this.state != OpenLayers.State.INSERT &&
+               this.state != OpenLayers.State.REMOVED;
     },
 
     CLASS_NAME: "OpenLayers.Feature"



More information about the Commits mailing list