Commit 3c73904e authored by fat's avatar fat

update tool/pop destroy placement

parent 6baf266c
......@@ -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]()
})
......
......@@ -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]()
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment