this code is equivalent, except for the JSON correctness test, that should go elsewhere

This commit is contained in:
Javier Abadia 2014-01-18 22:42:47 +01:00
parent 9299d4cb70
commit b558111bcf

View File

@ -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(){