diff --git a/src/models/Popup.js b/src/models/Popup.js index 8a661098..6625c63e 100644 --- a/src/models/Popup.js +++ b/src/models/Popup.js @@ -32,7 +32,7 @@ export default class Popup extends Base { MARKETING : 'DISMISS' } this.customStyles = {} - this.hasTransition = !!(function() { + this.transitionEnd = (function() { const el = document.createElement('div') const trans = { t: 'transitionend', @@ -52,6 +52,7 @@ export default class Popup extends Base { } return '' })() + this.hasTransition = !!this.transitionEnd; // returns true if `onComplete` was called if (this.canUseCookies()) {