From 3c73904e1728df9bfb6e6b7dfe3b3b732d066784 Mon Sep 17 00:00:00 2001 From: fat Date: Thu, 26 Dec 2013 18:27:43 -0800 Subject: [PATCH] update tool/pop destroy placement --- js/popover.js | 2 +- js/tooltip.js | 2 +- 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]() })