[Proto-Scripty] problem with arguments and class creation

2009-12-18 Thread Davide
Hi all, I have a class defined like this var C = Class.create({ initialize:function() { alert(ext: + arguments.length) this.b(arguments); }, b:function() { alert(int: + arguments.length) } }); when I create the class using : c= new C(aa,aa,aa,aa) I have the

Re: [Proto-Scripty] problem with arguments and class creation

2009-12-18 Thread Frédéric
Le vendredi 18 décembre 2009 13:16, Davide a écrit : var C = Class.create({    initialize:function() {      alert(ext: + arguments.length)       this.b(arguments);    },     b:function() {       alert(int: + arguments.length)     } }); Try: var C = Class.create({