mirror of
https://github.com/Esri/offline-editor-js.git
synced 2025-12-15 15:20:05 +00:00
this code is equivalent, except for the JSON correctness test, that should go elsewhere
This commit is contained in:
parent
9299d4cb70
commit
b558111bcf
@ -667,26 +667,7 @@ console.log("ITEM!!! " + item)
|
||||
* @private
|
||||
*/
|
||||
this._reserializeGraphicsArray = function( /* Array */ array){
|
||||
var newStr = [];
|
||||
var length = array.length;
|
||||
for(var i=0;i<length;i++){
|
||||
var segment = array[i];
|
||||
if(!!segment == false)continue; //skip null values or empty strings
|
||||
//var newSegment = segment.replace(/\\/g,'');
|
||||
|
||||
try{
|
||||
//validate that the segment is parseable.
|
||||
//If not then something went wrong.
|
||||
var test = JSON.parse(segment);
|
||||
if(typeof test != "undefined"){
|
||||
newStr.push(segment);
|
||||
}
|
||||
}
|
||||
catch(err){
|
||||
console.log("_reserializeGraphicsArray: " + err.toString());
|
||||
}
|
||||
}
|
||||
return newStr.join(this._localEnum().TOKEN);
|
||||
return array.join(this._localEnum().TOKEN);
|
||||
}
|
||||
|
||||
this._deleteLocalStoreIndex = function(){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user