diff options
Diffstat (limited to 'bower_components/bootstrap/js/popover.js')
-rwxr-xr-x[-rw-r--r--] | bower_components/bootstrap/js/popover.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/bower_components/bootstrap/js/popover.js b/bower_components/bootstrap/js/popover.js index 7abca8ac..ecd37ac2 100644..100755 --- a/bower_components/bootstrap/js/popover.js +++ b/bower_components/bootstrap/js/popover.js @@ -58,7 +58,9 @@ $tip.removeClass('fade top bottom left right in') - $tip.find('.popover-title:empty').hide() + // IE8 doesn't accept hiding via the `:empty` pseudo selector, we have to do + // this manually by checking the contents. + if (!$tip.find('.popover-title').html()) $tip.find('.popover-title').hide() } Popover.prototype.hasContent = function () { @@ -75,15 +77,15 @@ o.content) } + Popover.prototype.arrow = function () { + return this.$arrow = this.$arrow || this.tip().find('.arrow') + } + Popover.prototype.tip = function () { if (!this.$tip) this.$tip = $(this.options.template) return this.$tip } - Popover.prototype.destroy = function () { - this.hide().$element.off('.' + this.type).removeData(this.type) - } - // POPOVER PLUGIN DEFINITION // ========================= |