problem found

This commit is contained in:
Javier Abadia 2014-02-04 00:13:25 +01:00
parent 0f5ebdd51f
commit f6f9483e10
2 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,7 @@
- 'loader.gif' when replaying edits to server, OK
- unit tests, OK
- going online fails if all edits cancel themselves (for instance one add + one delete)
- unit tests for failure cases
- explicit feedback to user when QuotaError happens
- goOnline()/goOffline() automatically

View File

@ -165,7 +165,10 @@ define([
break;
case editsStore.DELETE:
if(objectId < 0)
{
delete layerEdits[ objectId ];
optimizedCount -= 1;
}
else
layerEdits[objectId].operation = editsStore.DELETE;
break;