I am facing some issue while trying to save a diagram . Please take a look at this code :
function loadDiagramInMemory(currentForm) {
var diagram = currentForm.data('diagram');
var saveData = diagram.saveDiagram();
localStorage.setItem('file', saveData);
}
which results into this exception :
I am not sure , what I am doing wrong here. just for reference this call is happening after getting success data from controller
.syncPost({
action: "CreateTask",
actionArgs: postdata,
resultTarget: function (result) {
var canvasData = JSON.parse(result);
loadDiagramInMemory();
RefreshCanvas();
}
});