Skip to content

Instantly share code, notes, and snippets.

@clock21am
Created June 7, 2016 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clock21am/c9e426e4c9b43707ea9f656da17c55da to your computer and use it in GitHub Desktop.
Save clock21am/c9e426e4c9b43707ea9f656da17c55da to your computer and use it in GitHub Desktop.
items.nodecreator.model.clear();
items.answerschoice.model.clear();
items.edgecreator.model.clear();
for(var i = 0 ; i < test.nodePositions.length; i++){
items.nodecreator.model.append({
"xx": test.nodePositions[i][0],
"yy": test.nodePositions[i][1],
"nodee": test1.nodeleave[i],
"rationn": test.rationn[i],
"currentstate":test1.currentstate[i]
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment