1
0
Fork 0

convert more initNode to the method version (sorry, had forgotten these)

This commit is contained in:
mfranz 2008-11-20 22:06:54 +00:00
parent f263e693f2
commit 8d7545252f

View file

@ -596,7 +596,7 @@ var overlay_update = {
}, },
add: func(path, prop, callback = nil) { add: func(path, prop, callback = nil) {
var path = string.normpath(getprop("/sim/fg-root") ~ '/' ~ path) ~ '/'; 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]; typeof(callback) == "func" ? callback : func nil];
return me; return me;
}, },
@ -922,8 +922,8 @@ var HUD = {
# ============================================================================== # ==============================================================================
# #
_setlistener("/sim/signals/nasal-dir-initialized", func { _setlistener("/sim/signals/nasal-dir-initialized", func {
props.initNode("/sim/time/delta-sec", 0); props.globals.initNode("/sim/time/delta-sec", 0);
props.initNode("/sim/time/delta-realtime-sec", 0.00000001); props.globals.initNode("/sim/time/delta-realtime-sec", 0.00000001);
HUD.init(); HUD.init();
data.init(); data.init();