Ryan McKinley fb340c0406 SOLR-868: Adding solrjs as a contrib package: contrib/javascript.
(Matthias Epheser via ryan)

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@718422 13f79535-47bb-0310-9956-ffa450edef68
2008-11-17 22:42:45 +00:00

18 lines
404 B
JavaScript

var Person = makeClass(
/**
@scope Person
*/
{
/**
This is just another way to define a constructor.
@constructs
@param {string} name The name of the person.
*/
initialize: function(name) {
this.name = name;
},
say: function(message) {
return this.name + " says: " + message;
}
}
);