codice:function Table(n){ this.number=n; this.user=Array(); this.button=$("#table_1").find(".sitdown"); this.button.bind("click",this.sit.bind(this)); this.li.each(function(index, element) { //this.user.push($(element).text()); primo problema }.bind(this)); } Table.prototype.sit = function(){ //alert(this) secondo problema }