bind-all-component
v0.0.1
Published
Component for creating singletons from objects
Downloads
4
Readme
bind-all
Component for creating singletons from objects
Installation
$ component install segmentio/bind-all
API
function User () {
this.x = 4;
}
User.prototype.y = function () {
return this.x;
};
var user = bindAll(new User());
user.y.apply(this); // 4
License
MIT