Created
November 18, 2019 20:12
-
-
Save CarlMungazi/a2138fc2a3d96cd6df5bba74f0c63bec to your computer and use it in GitHub Desktop.
This file contains 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
Object.defineProperty(Object.prototype, "onsubmit", { | |
get() { | |
return (e) => { | |
e.preventDefault(); | |
console.log('I am on the setter'); | |
} | |
}, | |
set(val) { | |
console.log(val); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment