Hi All I tried to add functions to an object like
function User(n, a) { this.name = n ; this.aux = a ; } function auxis() { alert(this.aux); } $(document).ready( function() { var u = new User("Jack") ; u.extend({ whoami: function() { alert(this.name); }, autis: auxis }) ; u.whoami() ; }) ; Eventually I will have 2 object A and B and I want to merge A into B: B.exend(A) ; However it doesn't work at all. Any suggestions how to fix this ?