From 3e3b331ad31950e1516eb541bdcc4a4bcfe32f74 Mon Sep 17 00:00:00 2001 From: Bootstrap's Grunt bot Date: Sat, 25 Apr 2015 20:20:30 +0000 Subject: automatic `grunt dist` [ci skip] --- docs/dist/js/bootstrap.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'docs/dist/js/bootstrap.js') 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 () { -- cgit v1.2.3