popover with trigger manual -- then toggle doesnt work
Created by: Yohn
since I updated to 2.2.1 from 2.1.1 one of my popovers wasnt working, and I just got around to playing with it tonight and found that the toggle
state for the popover isnt working correctly
heres a fiddle - http://jsfiddle.net/scK68/2/
I put in the fiddle that if you call $().popover('show')
it works correctly, but when I try $().popover('toggle')
it does not
I do get a javascript error being called saying
e is undefined
within the tooltip source, which is pointing at this function
, toggle: function (e) {
var self = $(e.currentTarget)[this.type](this._options).data(this.type)
self[self.tip().hasClass('in') ? 'hide' : 'show']()
}
maybe I'm doing it wrong, but I looked at the docs over and over again with this, and still cant figure out why the toggle switch isnt working when I call it