Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Importer() {
- // Pseudo-code, not actual implementation.
- this.load() = function load() {...};
- this.context = this.__proto__;
- }
- var i = Importer();
- i.load('foo');
- assert(i.Foo);
- i.load; // a function
- i.context.load; // 2.
Add Comment
Please, Sign In to add comment