$.fn.popover = function (option) {
return this.each(function () {
var $this = $(this)
, data = $this.data('popover')
, options = typeof option == 'object' && option
*if (!data) $this.data('popover', (data = new Popover(this, options)))*
if (typeof option == 'string') data[option]()
})
}
When you call popover with an object option { trigger: 'manual' , /* more
stuff */} , the popover's will not create its instance again if (!data) *{ /*
this will not work */ }*
On Fri, Jun 29, 2012 at 7:19 AM, nilskp <[email protected]> wrote:
> $('#foo').popover('hide').popover({ trigger: 'manual' , /* more stuff
> */}).popover('show');
>
--
Ghoul To World! - http://www.g2w.me
ScriptFan - http://scriptfan.com/