zvector/zcore — Issue #1: Reduce inherit function
Author: nickfargo
Created: 2011-12-28 07:57:00+00:00
State: open

Remove usage of `create` within inherit, along the lines of:

```javascript
function inherit ( Child, Parent ) {
function constructor () {}
constructor.prototype = Parent.prototype;
return ( Child.prototype = new constructor ).constructor = Child;
}
```

This would give up on displaying a proper type for `Child.prototype` in Chrome dev tools (it would be presented as `constructor` instead of the Child function's name), but that is arguably not worth the performance loss incurred by using `Object.create`.