aboutsummaryrefslogtreecommitdiff
path: root/docs/dist/js/bootstrap.js
diff options
context:
space:
mode:
authorBootstrap's Grunt bot <[email protected]>2015-04-25 20:20:30 +0000
committerBootstrap's Grunt bot <[email protected]>2015-04-25 20:20:30 +0000
commit3e3b331ad31950e1516eb541bdcc4a4bcfe32f74 (patch)
tree8ab2f7b0201fbff6280de79d0bde0cfb110acae5 /docs/dist/js/bootstrap.js
parent17aaab3de87b0c4467409ac512ed3ec85fa2852a (diff)
downloadbootstrap-3e3b331ad31950e1516eb541bdcc4a4bcfe32f74.tar.xz
bootstrap-3e3b331ad31950e1516eb541bdcc4a4bcfe32f74.zip
automatic `grunt dist`
[ci skip]
Diffstat (limited to 'docs/dist/js/bootstrap.js')
-rw-r--r--docs/dist/js/bootstrap.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/dist/js/bootstrap.js b/docs/dist/js/bootstrap.js
index 6cd85e30a..fdf80e2d4 100644
--- a/docs/dist/js/bootstrap.js
+++ b/docs/dist/js/bootstrap.js
@@ -1648,7 +1648,13 @@ if (typeof jQuery === 'undefined') {
}
Tooltip.prototype.tip = function () {
- return (this.$tip = this.$tip || $(this.options.template))
+ if (!this.$tip) {
+ this.$tip = $(this.options.template)
+ if (this.$tip.length != 1) {
+ throw new Error(this.type + ' `template` option must consist of exactly 1 top-level element!')
+ }
+ }
+ return this.$tip
}
Tooltip.prototype.arrow = function () {