Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HTMLElement.prototype.flex = new function(){
- var obj = this;
- this.event = new function(){
- this.clicked = function(func){
- //return HTMLElement
- console.log(this); //returns clicked method
- console.log(obj); //returns the class object
- }
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement