Created
November 1, 2017 17:01
-
-
Save Kloport/488b1065250e5b49c79a48e16512206e 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
constructor() { | |
this.el = document; | |
this.evt = (e) => { | |
... | |
} | |
} | |
// Trigger exclusion modal if a click happens anywhere except on the modal box | |
this.el.addEventListener('click', this.evt); | |
// Remove listener once exclusion has been triggered | |
this.el.removeEventListener('click', this.evt); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment