Project DescriptionJsClassDef provides a a single JavaScript function whose purpose is to simplify the coding of a JavaScript class. It will leverage third party libraries to do the actual class creation. The first version leverages the client library of ASP.NET Ajax.
Quick Example Class (to give you the idea)
compileClasses({
ctor: function() {
// My constructor function
},
private: {
privateFunction : function() { /* this is private */},
privateVar : 1,
privateArray: [1,2]
},
public : {
publicFunction : function() { /* this is public */ },
publicVar : "this is public"
},
static : {
staticFunction: function() { /* No instance needed for this function */ },
staticVar : "This is available right off of the main class"
},
inherits : "someClass",
implements : ["IInterfaceThatIsImplemented", "IAnotherInterfaceThatIsImplemented"]
});