From f2bfcdb5cc1ee83a9774d0d4ba0f4258ca20a941 Mon Sep 17 00:00:00 2001 From: Andy Gup Date: Fri, 29 May 2015 15:24:46 -0600 Subject: [PATCH] a few more doc tweaks --- doc/howtouseeditlibrary.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/howtouseeditlibrary.md b/doc/howtouseeditlibrary.md index 15e3a9c..b22040b 100644 --- a/doc/howtouseeditlibrary.md +++ b/doc/howtouseeditlibrary.md @@ -119,7 +119,9 @@ For full offline use, the pattern would look like this where we are creating a ` ``` -When working with fully offline browser restarts you should wait until the layer has been successfully extended before forcing the library to go back online. The workflow for this coding pattern is you start out online > offline > browser restart > then back online. +When working with fully offline browser restarts you should wait until the layer has been successfully extended before forcing the library to go back online. When you force the library to `goOnline()` it will attempt to sync any edits that occurred while offline. + +The workflow for this coding pattern is you start out online > offline > browser restart > then back online. ```js @@ -166,7 +168,7 @@ You can then retrieve this data after an offline restart by using the following offlineFeaturesManager.getFeatureLayerJSONDataStore(function(success, dataStore){ if(success){ myFeatureLayer = new - FeatureLayer(JSON.parse(dataStore.featureLayerCollection),{ + FeatureLayer(dataStore.featureLayerJSON,{ mode: FeatureLayer.MODE_SNAPSHOT, outFields: ["GlobalID","BSID","ROUTES","STOPNAME"] });