vendor/assets/javascripts/popover.js in active_frontend-1.0.11 vs vendor/assets/javascripts/popover.js in active_frontend-2.0.0

- old
+ new

@@ -8,11 +8,11 @@ this.init('popover', element, options) } if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js') - Popover.VERSION = '3.3.2' + Popover.VERSION = '3.3.4' Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, { placement: 'right', trigger: 'click', content: '', @@ -74,10 +74,10 @@ return this.each(function () { var $this = $(this) var data = $this.data('bs.popover') var options = typeof option == 'object' && option - if (!data && option == 'destroy') return + if (!data && /destroy|hide/.test(option)) return if (!data) $this.data('bs.popover', (data = new Popover(this, options))) if (typeof option == 'string') data[option]() }) } \ No newline at end of file