Deleting objects using Javascript
I have the items in the attached list. I'm trying to delete "head-tongue" using Javascript but having no luck. I've tried:
Nothing seems to work. Either throws an error (no surprise) or does nothing.
I will be the first to admit that Objective C is my forte and Javascript is... well, falls out after Lisp.
Thanks!
I have the items in the attached list. I'm trying to delete "head-tongue" using Javascript but having no luck. I've tried:
Code:
delete doc["head-tongue"];
var name = "head-tongue";
delete doc[name];
var root = doc.root();
delete root["head-tongue"];
var root = doc.root();
var name = "head-tongue";
delete root[name];
Nothing seems to work. Either throws an error (no surprise) or does nothing.
I will be the first to admit that Objective C is my forte and Javascript is... well, falls out after Lisp.
Thanks!