From: dormouse Date: Thu, 29 Jan 2015 03:21:07 +0000 (+0800) Subject: tip method in popover.js can be removed X-Git-Tag: v3.3.4~74^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91b384399c3c7c299466c595235640f336b3fc15;p=thirdparty%2Fbootstrap.git tip method in popover.js can be removed Popover is extend Tooltip, the tip function can use tootltip's tip, so we can remove the tip function definition in popover to reduce the js filesize tip function definition in tooltip.js https://github.com/tbs/bootstrap/blob/master/js/tooltip.js#L405-L407 --- diff --git a/js/popover.js b/js/popover.js index be65b11a17..09be24433b 100644 --- a/js/popover.js +++ b/js/popover.js @@ -75,11 +75,6 @@ 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 PLUGIN DEFINITION // =========================