JavaScript lib: allow children as arguments to Fun.

This commit is contained in:
bringert
2007-01-04 22:01:38 +00:00
parent 1ded2878f2
commit 988772ba37

View File

@@ -2,6 +2,9 @@
function Fun(name) {
this.name = name;
for (var i = 1; i < arguments.length; i++) {
this.setChild(i-1, arguments[i]);
}
}
Fun.prototype.print = function () { return this.show(0); } ;
Fun.prototype.show = function (prec) {