1.0.1 • Published 6 years ago

legado v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

legado

Build Status npm

A very simple and minimalist inheritance system.

Examples:

import legado from "legado";

var Base = legado({
  constructor: function() {
    this.a = "a";
  },
  x: function() {
    return this.a;
  }
});

var Sub = legado(Base, {
  constructor: function() {
    Base.prototype.constructor.apply(this);
    this.b = "b";
  },
  y: function() {
    return this.x() + this.b;
  },
});

To install:

npm install legado

Or download it on https://unpkg.com/legado/

1.0.1

6 years ago

1.0.0

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago