1
0
forked from GitHub/gf-rgl

JavaScript lib: allow children as arguments to Fun.

This commit is contained in:
bringert
2007-01-04 22:01:38 +00:00
parent dc9569cf62
commit c95c1d9867

View File

@@ -2,6 +2,9 @@
function Fun(name) { function Fun(name) {
this.name = 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.print = function () { return this.show(0); } ;
Fun.prototype.show = function (prec) { Fun.prototype.show = function (prec) {