Created
May 2, 2016 09:50
-
-
Save Arkotek/06930e7348e45ce3e1a0c420b2af7ef0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Toto = function() { | |
}; | |
Toto.prototype.test = function() { | |
}; | |
var wrappedClass = new Proxy(Toto, { | |
get : function(o, method_name) { | |
console.log(o, method_name); | |
return function() { | |
console.log('Alright'); | |
} | |
} | |
}); | |
wrappedClass.yes(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment