function parser(data){
var saveSections = data.split("\r");
var parsed = new Array();
var tempCatch = "";
var CatchTwo = [];
//saveSections[0] = saveSections[0].split(",");
for (var i = 0; i < saveSections.length; i++){
saveSections[i] = saveSections[i].split(",");
for (var j = 0; j < saveSections.length; j++){
tempCatch = saveSections[0][0].split(":");
//saveSections[0][0] = tempCatch;
}
}
return tempCatch;
}
Ok there is problem. This function works without problems until I uncomment
//saveSections[0][0] = tempCatch;.
When I do it, debbuger throws:
Uncaught TypeError: saveSections[0][0].split is not a function
That points at this line:
tempCatch = saveSections[0][0].split(":");
splitmethod.