A modularization of Backbone.js's extend() function for use with JS classes.


For when you just wan't Backbone's Class.extend() function.

Backbone.js style inheritance. The extend function has been taken directly from Backbone. This is really @bermi 's idea.

Very similar to uberclass and class.js -- the main difference is that the prototype props and static props order has been reversed.


var BaseClass = require("baseclass");
var MyClass = BaseClass.extend({
    someProp: 'My property value',
    someMethodfunction () { ... }
    optionalStaticProp = "MyClass.optionalStaticProp"