From 2c92f74b9fdf2df36f3c309a69d853db1240446c Mon Sep 17 00:00:00 2001 From: ehofman Date: Tue, 2 Dec 2003 17:54:15 +0000 Subject: [PATCH] Fix a typo --- Nasal/props.nas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Nasal/props.nas b/Nasal/props.nas index e10241366..dfe483598 100644 --- a/Nasal/props.nas +++ b/Nasal/props.nas @@ -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]); } }