From 91b384399c3c7c299466c595235640f336b3fc15 Mon Sep 17 00:00:00 2001 From: dormouse Date: Thu, 29 Jan 2015 11:21:07 +0800 Subject: [PATCH] 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 --- js/popover.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/js/popover.js b/js/popover.js index be65b11a1743..09be24433bff 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 // =========================