Fix a typo
This commit is contained in:
parent
0be80148c3
commit
2c92f74b9f
1 changed files with 2 additions and 2 deletions
|
@ -33,10 +33,10 @@ Node = {
|
|||
# Static constructor. Accepts a hash as an argument and duplicates
|
||||
# its contents in the property node. ex:
|
||||
# Node.new({ value : 1.0, units : "ms" });
|
||||
Node.new : func {
|
||||
Node.new = func {
|
||||
result = wrapNode(_new());
|
||||
if(typeof(arg[0]) == "hash") {
|
||||
foreach(k; keys(arg[0]) {
|
||||
foreach(k; keys(arg[0])) {
|
||||
result.getNode(k, 1).setValue(arg[0][k]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue