Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Foo = function (callback) {
- var lol = 123;
- this.bar = function () {
- console.log(lol)
- };
- this.text = "se fude";
- callback.call(this);
- };
- Foo.prototype = function () {
- return this;
- };
- new Foo(function () {
- console.log(this);
- this.bar();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement