1
0
Fork 0

Fix a typo

This commit is contained in:
ehofman 2003-12-02 17:54:15 +00:00
parent 0be80148c3
commit 2c92f74b9f

View file

@ -33,10 +33,10 @@ Node = {
# Static constructor. Accepts a hash as an argument and duplicates # Static constructor. Accepts a hash as an argument and duplicates
# its contents in the property node. ex: # its contents in the property node. ex:
# Node.new({ value : 1.0, units : "ms" }); # Node.new({ value : 1.0, units : "ms" });
Node.new : func { Node.new = func {
result = wrapNode(_new()); result = wrapNode(_new());
if(typeof(arg[0]) == "hash") { if(typeof(arg[0]) == "hash") {
foreach(k; keys(arg[0]) { foreach(k; keys(arg[0])) {
result.getNode(k, 1).setValue(arg[0][k]); result.getNode(k, 1).setValue(arg[0][k]);
} }
} }