.oooooo. d8P' `Y8b 888 888 .ooooo. oo.ooooo. .oooo.o oooo ooo 888 888 d88' `88b 888' `88b d88( "8 `88. .8' 888 888 888 888 888 888 `"Y88b. `88..8' `88b d88' 888 888 888 888 o. )88b `888' `Y8bood8P' `Y8bod8P' 888bod8P' 8""888P' .8' 888 .o..P' o888o `Y8P'
Install using the package manager for your desired environment(s):
$ npm install --save oopsy# OR:$ bower install --save skelp-oopsy
If you want to simply download the file to be used in the browser you can find them below:
The API is extremely simple and is designed to make it as easy as possible to implement traditional inheritance.
It is very flexible and can be used to extend classes:
var BaseObject = Oopsyvar ChildObject = BaseObjectvar Person = ChildObject
All constructors extended by Oopsy are given a static
super_ property which references the super constructor.
Also, this can be used to extend existing classes such as
var EventEmitter = EventEmittervar Oopsy =var BaseObject = Oopsy
However, this last approach has the caveats of
instanceof not identifying this kind of inheritance and
only reference the constructor that is extended.
If you have any problems with Oopsy or would like to see changes currently in development you can do so here.
If you want to contribute, you're a legend! Information on how you can do so can be found in CONTRIBUTING.md. We want your suggestions and pull requests!
A list of Oopsy contributors can be found in AUTHORS.md.
See LICENSE.md for more information on our MIT license.
© 2016 Skelp