structr
javascript class system
Last updated 7 years ago by architectd .
Repository · Original npm · Tarball · package.json
$ cnpm install structr 
SYNC missed versions from official npm registry.

Structr is a thin class library that helps create, and extend prototypes.

Example



function Animal(name) {
  this.name = name;
}

function Cat(name) {
  Cat.__super__.apply(this, arguments);
}

structr(Animal, Cat, {
  meow: function() {
    console.log(this.name + ": meow");
  }
});


Current Tags

  • 0.3.2                                ...           latest (7 years ago)

19 Versions

  • 0.3.2                                ...           7 years ago
  • 0.3.1                                ...           7 years ago
  • 0.3.0                                ...           7 years ago
  • 0.2.4                                ...           7 years ago
  • 0.2.3                                ...           7 years ago
  • 0.2.2                                ...           8 years ago
  • 0.2.0                                ...           8 years ago
  • 0.1.3                                ...           8 years ago
  • 0.1.0                                ...           9 years ago
  • 0.0.10                                ...           9 years ago
  • 0.0.8                                ...           9 years ago
  • 0.0.5                                ...           9 years ago
  • 0.0.4-3                                ...           9 years ago
  • 0.0.4-2                                ...           9 years ago
  • 0.0.4-1                                ...           9 years ago
  • 0.0.4                                ...           9 years ago
  • 0.0.3                                ...           9 years ago
  • 0.0.2                                ...           9 years ago
  • 0.0.1                                ...           9 years ago

Copyright 2014 - 2017 © taobao.org |