0.1.4 • Published 10 years ago
cla55 v0.1.4

Simply extend classes in JavaScript
Usage
Compatible with CommonJS and AMD.
var Cla55 = require('cla55');
Cla55.extend(protoProps, staticProps, _super);
Cla55.create(Parent, protoProps, staticProps, _super);API
Cla55()
Cla55.extend(protoProps, staticProps, _super)
Shortcut to create a new class and inherit from Cla55.
Arguments:
protoPropsObject A hash of prototype methods/properties to extend (includingconstructormethod)staticPropsObject, optional A hash of static methods to extend_superBoolean, optional Hook methods with._super()and._superApply()methods
Returns:
- Function Sub class inherited from
Cla55
Cla55.create(Parent, protoProps, staticProps, _super)
Class create helper to create a new class and inherit from Parent.
Arguments:
ParentFunction A function to inheritprotoPropsObject A hash of prototype methods/properties to extend (includingconstructormethod)staticPropsObject, optional A hash of static methods to extend_superBoolean, optional Hook methods with._super()and._superApply()methods
Returns:
- Function Sub class inherited from
Parent
Cla55.Cla55
Direct expose of the base class Cla55.
Returns:
- Function Base class
Cla55