Last active
November 13, 2016 12:21
-
-
Save tomasperezv/c60980e8aa085c2a712f7154d53a98cc 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
/** | |
* Registering the acccess to method calls inside of the callback to avoid race | |
* conditions. | |
*/ | |
get(obj: Object, key: string): Object { | |
... | |
if (typeof originalValue === 'function') { | |
result = () => { | |
_registerAccess(key); | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment