- Update name, email, and repository for npm
- Statically distribute build/p.commonjs.js
- Allow idiomatic (coffeescript or es6) subclassing of pjs classes, at the
cost of subtly breaking back-compat with
this.constructor(...)
. To fix this, just put anew
in front of the call.
- remove .mixin, and add .extend (see #18)
- Add .p as an alias for .prototype
- slight minifier optimization
- Build process fixes (thanks @danro!)
- rename BareConstructor to SuperclassBare (@laughinghan)
(bad release)
- Fix #13: don't call the constructor when making the new prototype.
- Introduce
MyClass.Bare
as a way of allocating uninitialized instances - Created classes will now create instances in exactly the same way
no matter what the calling context. In particular this means
new
works as expected:
new MyClass(1, 2) // calls MyClass::init with arguments (1, 2)
- Started a CHANGELOG
- Removed support for the
.fn
property which was buggy and unused - Down to 525 bytes minified