kist-klass
Simple class system. Inspired by Backbone extend and simple inheritance by John Resig.
Installation
npm install kist-klass --save bower install kist-klass --save
API
.extend([options])
Returns: Klass
Extend base (or already extended class).
If you provide constructor
method, it will override default constructor.
._super
Type: Function
Current class parent.
Examples
var Klass = ; var Foo = Klass; var Bar = Foo; var foo = ;var bar = ;
AMD and global
; windowkistklass;
Browser support
Tested in IE8+ and all modern browsers.
License
MIT © Ivan Nikolić