0.1.1 • Published 9 years ago
@stephenbunch/bind v0.1.1
import bind from '@stephenbunch/bind';
class Foo {
@bind bar() {
return this;
}
}
var foo = new Foo();
expect( foo.bar.call( undefined ) ).to.equal( foo );
import bind from '@stephenbunch/bind';
class Foo {
@bind bar() {
return this;
}
}
var foo = new Foo();
expect( foo.bar.call( undefined ) ).to.equal( foo );