mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-05-19 17:21:52 +00:00
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
This commit is contained in:
parent
a7747dedf2
commit
91b384399c
1 changed files with 0 additions and 5 deletions
|
|
@ -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
|
||||
// =========================
|
||||
|
|
|
|||
Loading…
Reference in a new issue