diff --git a/js/bootstrap-twipsy.js b/js/bootstrap-twipsy.js index 5ebbddd675d2..872b8a1b9b37 100644 --- a/js/bootstrap-twipsy.js +++ b/js/bootstrap-twipsy.js @@ -259,16 +259,18 @@ } function leave() { - var twipsy = get(this) - twipsy.hoverState = 'out' - if (options.delayOut == 0) { - twipsy.hide() - } else { - setTimeout(function() { - if (twipsy.hoverState == 'out') { - twipsy.hide() - } - }, options.delayOut) + if (!options.stay) { + var twipsy = get(this) + twipsy.hoverState = 'out' + if (options.delayOut == 0) { + twipsy.hide() + } else { + setTimeout(function() { + if (twipsy.hoverState == 'out') { + twipsy.hide() + } + }, options.delayOut) + } } } @@ -294,6 +296,7 @@ animate: true , delayIn: 0 , delayOut: 0 + , stay: false , fallback: '' , placement: 'above' , html: false