cosmetics (comment fixes & improvements, variable name)
This commit is contained in:
parent
dec94a9bb4
commit
ae40faf4e5
3 changed files with 6 additions and 8 deletions
|
@ -1,9 +1,7 @@
|
|||
# Permissions for Nasal's io.open() and parsexml(), and fgcommands
|
||||
# load[xml], save[xml]
|
||||
#
|
||||
# This file defines which file paths can be opened for reading and/or
|
||||
# writing using Nasal's io.open() command. The respective code can be
|
||||
# found in $FG_ROOT/Nasal/io.nas.
|
||||
# writing using Nasal's io.open() and parsexml() functions, as well as
|
||||
# the fgcommands load, save, loadxml, and savexml. The evaluation code
|
||||
# can be found in $FG_ROOT/Nasal/io.nas.
|
||||
#
|
||||
# Empty lines and lines starting with '#' are ignored. All other entries
|
||||
# must be of the form
|
||||
|
|
|
@ -70,10 +70,10 @@ var interpolate = func(node, val...) {
|
|||
# "always trigger on write" (1), and "trigger even when children are
|
||||
# written to" (2).
|
||||
#
|
||||
var setlistener = func(node, fun, init = 0, runtime = 1) {
|
||||
var setlistener = func(node, fn, init = 0, runtime = 1) {
|
||||
if(isa(node, props.Node)) node = node._g;
|
||||
var id = _setlistener(node, func(chg, lst, mode, is_child) {
|
||||
fun(props.wrapNode(chg), props.wrapNode(lst), mode, is_child);
|
||||
fn(props.wrapNode(chg), props.wrapNode(lst), mode, is_child);
|
||||
}, init, runtime);
|
||||
if(__.log_level <= 2) {
|
||||
var c = caller(1);
|
||||
|
|
|
@ -186,7 +186,7 @@ match = func(str, patt) {
|
|||
# Removes superfluous slashes, empty and "." elements, expands
|
||||
# all ".." elements, and turns all backslashes into slashes.
|
||||
# The result will start with a slash if it started with a slash
|
||||
# or backslash, it will end without slash. Should be applied on
|
||||
# or backslash, it will end without slash. Should be applied to
|
||||
# absolute property or file paths, otherwise ".." elements might
|
||||
# be resolved wrongly.
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue