Revision: 4369
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 2, 2007 12:00 by arcturus
Initial Code
//Use with prototype 1.6 var Person = Class.create({ initialize: function(){ //Create a Hash for information store this.info = $H(); } , setName: function(name){ this.info.set("name",name); } , getName: function(){ return this.info.get("name"); } , setSurname: function(surname){ this.info.set("surname",surname); } , getSurname: function(){ return this.info.get("surname"); } , toJSON: function(){ return this.info.toJSON(); } });
Initial URL
Initial Description
Initial Title
prototype class creation
Initial Tags
javascript
Initial Language
JavaScript