aboutsummaryrefslogtreecommitdiff
path: root/dist/js/bootstrap.js
diff options
context:
space:
mode:
authorfat <[email protected]>2013-12-26 18:30:16 -0800
committerfat <[email protected]>2013-12-26 18:30:16 -0800
commitcd0ad94aae42926e2bf86c2f14c6a8856c9b34ff (patch)
treee92c49251711eceeefe8326afe92ca2cf090266d /dist/js/bootstrap.js
parent3c73904e1728df9bfb6e6b7dfe3b3b732d066784 (diff)
downloadbootstrap-cd0ad94aae42926e2bf86c2f14c6a8856c9b34ff.tar.xz
bootstrap-cd0ad94aae42926e2bf86c2f14c6a8856c9b34ff.zip
rebuild
Diffstat (limited to 'dist/js/bootstrap.js')
-rw-r--r--dist/js/bootstrap.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/dist/js/bootstrap.js b/dist/js/bootstrap.js
index a126259b7..cf99d8566 100644
--- a/dist/js/bootstrap.js
+++ b/dist/js/bootstrap.js
@@ -1364,6 +1364,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
}
Tooltip.prototype.destroy = function () {
+ clearTimeout(this.timeout)
this.hide().$element.off('.' + this.type).removeData('bs.' + this.type)
}
@@ -1379,6 +1380,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
var data = $this.data('bs.tooltip')
var options = typeof option == 'object' && option
+ if (!data && option == 'destroy') return
if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options)))
if (typeof option == 'string') data[option]()
})
@@ -1486,6 +1488,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
var data = $this.data('bs.popover')
var options = typeof option == 'object' && option
+ if (!data && option == 'destroy') return
if (!data) $this.data('bs.popover', (data = new Popover(this, options)))
if (typeof option == 'string') data[option]()
})