From d61de93a6eae003ddb1057e8cab00c3e8bc1ea81 Mon Sep 17 00:00:00 2001 From: mfranz Date: Wed, 22 Mar 2006 22:08:15 +0000 Subject: [PATCH] be slightly more efficient and slightly less verbose --- gui/dialogs/location-in-air.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gui/dialogs/location-in-air.xml b/gui/dialogs/location-in-air.xml index 41043e986..073e8c57b 100644 --- a/gui/dialogs/location-in-air.xml +++ b/gui/dialogs/location-in-air.xml @@ -6,13 +6,13 @@ - tmp = "/sim/gui/dialogs/location-in-air/"; + p = props.globals.getNode("/sim/gui/dialogs/location-in-air/", 1); mode = { - airport: props.globals.getNode(tmp ~ "airport", 1), - lonlat: props.globals.getNode(tmp ~ "lonlat", 1), - vor: props.globals.getNode(tmp ~ "vor", 1), - ndb: props.globals.getNode(tmp ~ "ndb", 1), - fix: props.globals.getNode(tmp ~ "fix", 1), + airport: p.getNode("airport", 1), + lonlat: p.getNode("lonlat", 1), + vor: p.getNode("vor", 1), + ndb: p.getNode("ndb", 1), + fix: p.getNode("fix", 1), }; set_radio = func(m) {