Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfat <jacobthornton@gmail.com>2013-12-27 06:27:43 +0400
committerfat <jacobthornton@gmail.com>2013-12-27 06:27:43 +0400
commit3c73904e1728df9bfb6e6b7dfe3b3b732d066784 (patch)
treec21f59a21f1d95241285020c5a974a372f7f5bcc
parent6baf266cdaf150de5f7deddb6d410cb8cb8de52a (diff)
update tool/pop destroy placement
-rw-r--r--js/popover.js2
-rw-r--r--js/tooltip.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/js/popover.js b/js/popover.js
index 84713bcc68..1e8104c4fc 100644
--- a/js/popover.js
+++ b/js/popover.js
@@ -85,9 +85,9 @@
return this.each(function () {
var $this = $(this)
var data = $this.data('bs.popover')
- if (!data && option === 'destroy') return
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]()
})
diff --git a/js/tooltip.js b/js/tooltip.js
index 0d3086e9a7..d491fea0ea 100644
--- a/js/tooltip.js
+++ b/js/tooltip.js
@@ -376,9 +376,9 @@
return this.each(function () {
var $this = $(this)
var data = $this.data('bs.tooltip')
- if (!data && option === 'destroy') return
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]()
})