]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
update tool/pop destroy placement
authorfat <jacobthornton@gmail.com>
Fri, 27 Dec 2013 02:27:43 +0000 (18:27 -0800)
committerfat <jacobthornton@gmail.com>
Fri, 27 Dec 2013 02:27:43 +0000 (18:27 -0800)
js/popover.js
js/tooltip.js

index 84713bcc6874d406ca58078824a52ee2c7c2287e..1e8104c4fca8d0651aa5f029c81e71c762e691f4 100644 (file)
@@ -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]()
     })
index 0d3086e9a7c5b99b0860cce268473f057984e2ae..d491fea0ea983545f493207e2907bfd617e8a1f3 100644 (file)
     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]()
     })