From 8d7545252f08eb0d7bbf0809ae5b8f2f83d51a69 Mon Sep 17 00:00:00 2001 From: mfranz Date: Thu, 20 Nov 2008 22:06:54 +0000 Subject: [PATCH] convert more initNode to the method version (sorry, had forgotten these) --- Nasal/aircraft.nas | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Nasal/aircraft.nas b/Nasal/aircraft.nas index 07d5eda70..4a3db70cc 100644 --- a/Nasal/aircraft.nas +++ b/Nasal/aircraft.nas @@ -596,7 +596,7 @@ var overlay_update = { }, add: func(path, prop, callback = nil) { var path = string.normpath(getprop("/sim/fg-root") ~ '/' ~ path) ~ '/'; - me.data[path] = [props.initNode(me.root.getNode(prop, 1), ""), "", + me.data[path] = [me.root.initNode(prop, ""), "", typeof(callback) == "func" ? callback : func nil]; return me; }, @@ -922,8 +922,8 @@ var HUD = { # ============================================================================== # _setlistener("/sim/signals/nasal-dir-initialized", func { - props.initNode("/sim/time/delta-sec", 0); - props.initNode("/sim/time/delta-realtime-sec", 0.00000001); + props.globals.initNode("/sim/time/delta-sec", 0); + props.globals.initNode("/sim/time/delta-realtime-sec", 0.00000001); HUD.init(); data.init();