bindAll
v1.0.0
Published
bind all the functions to an object
Downloads
5
Readme
bindAll
bind all the functions to an object
Example
var o = bindAll({
foo: function () {
this.bar()
}
}, {
bar: function () {
assert(this === o)
}
}),
assert = require("assert")
var f = o.foo
f()