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:
parent
b8e6232d46
commit
7b6205d37b
1 changed files with 2 additions and 0 deletions
|
@ -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)) },
|
||||
|
|
Loading…
Add table
Reference in a new issue