1
0
Fork 0

cosmetics (comment fixes & improvements, variable name)

This commit is contained in:
mfranz 2008-07-27 22:00:58 +00:00
parent dec94a9bb4
commit ae40faf4e5
3 changed files with 6 additions and 8 deletions

View file

@ -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

View file

@ -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);

View file

@ -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.
#