AnsweredAssumed Answered

Iterate assocs in javascript to remove them

Question asked by loftux Moderator on Sep 17, 2010
Latest reply on Sep 21, 2010 by loftux
How do I iterate an associations of a specified type in javascript in order to remove them?
I've tried this (and some variants), but it does not work.
for (i in fileNode.assocs["xel:reviewedby"]){
   fileNode.removeAssociation(fileNode.assocs["xel:reviewedby"][i], "xel:reviewedby");

So what is the correct way?