Last active
October 19, 2021 12:56
-
-
Save AhmedTarekHasan/8b1299370c0aabec3c7439a870d43ce1 to your computer and use it in GitHub Desktop.
Subscription.js
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
let Subscription = function(handlerId, unsubscribeNotificationCallback) { | |
let self = this; | |
self.unsubscribe = () => { | |
if(unsubscribeNotificationCallback) { | |
unsubscribeNotificationCallback(handlerId); | |
} | |
}; | |
return self; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment