0.0.1 • Published 11 years ago
bind-all-component v0.0.1
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
0.0.1
11 years ago