]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
tip method in popover.js can be removed 15693/head
authordormouse <huang.x.hui@gmail.com>
Thu, 29 Jan 2015 03:21:07 +0000 (11:21 +0800)
committerdormouse <huang.x.hui@gmail.com>
Thu, 29 Jan 2015 03:21:07 +0000 (11:21 +0800)
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

index be65b11a1743c29e7d3e50ab0bf1be3ca126210e..09be24433bff5d06058cdbd40d87a514fdac77dc 100644 (file)
     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
   // =========================