diff --git a/source/ouibounce.js b/source/ouibounce.js index 1bb73dd..f3431fb 100644 --- a/source/ouibounce.js +++ b/source/ouibounce.js @@ -86,8 +86,9 @@ function ouibounce(el, custom_config) { if (el) { el.style.display = 'block'; } - callback(); - disable(); + if (false !== callback()) { + disable(); + } } function disable(custom_options) {