1
0
Fork 0

add props.Node.getAttribute() and props.Node.setAttribute() methods.

Examples:
  var tied = foo.getAttribute("TIED");
  foo.setAttribute("USERARCHIVE", 1);

Both methods accept attribute strings "READ", "WRITE", "ARCHIVE",
"TRACE_READ", "TRACE_WRITE", and "USERARCHIVE". getAttribute() does
additionally accept "TIED" (although this isn't an SGPropertyNode::Attribute).
Attribute "REMOVED" is not supported.
This commit is contained in:
mfranz 2007-01-12 18:06:50 +00:00
parent b8e6232d46
commit 7b6205d37b

View file

@ -15,6 +15,8 @@
#
Node = {
getType : func { wrap(_getType(me._g, arg)) },
getAttribute : func { wrap(_getAttribute(me._g, arg)) },
setAttribute : func { wrap(_setAttribute(me._g, arg)) },
getName : func { wrap(_getName(me._g, arg)) },
getIndex : func { wrap(_getIndex(me._g, arg)) },
getValue : func { wrap(_getValue(me._g, arg)) },