extendable-base
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -32,7 +32,9 @@ var Extendable = require('./extendable'); | ||
// Sets up inheritance from the given parent class. If the constructor | ||
// isn't supplied then a default constructor is added which calls | ||
// `initialize` for each class in the inheritance hierarchy. | ||
// isn't supplied then a default constructor is added which invokes | ||
// the parent then calls `initialize` for each class in the | ||
// inheritance hierarchy. | ||
inherits: function(parent, protoProps, staticProps) { | ||
if (!protoProps.hasOwnProperty('constructor')) { | ||
protoProps.constructor = function() { | ||
parent.apply(this); | ||
Base._init_all(Object.getPrototypeOf(this), this, arguments); | ||
@@ -39,0 +41,0 @@ }; |
{ | ||
"name": "extendable-base", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Simple library for setting up Javascript classes based on Backbone.extend", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
15952
246