twitter/bootstrap — Issue #1772: bug with tooltip
Author: dimidid
Created: 2012-02-06 16:57:42+00:00
State: open

Hi guys,

when I try to use the new tooltip plugin I obtain this error:

self is undefined
http://twitter.github.com/bootstrap/assets/js/bootstrap-tooltip.js
if (!self.options.delay || !self.options.delay.show) {
Line 73

and

self is undefined
http://twitter.github.com/bootstrap/assets/js/bootstrap-tooltip.js
if (!self.options.delay || !self.options.delay.hide) {
Line 88

The problem come from this line : var self = $(e.currentTarget)[this.type](this._options).data(this.type)...
because when I test this._options value it is undefined....

By the way you can see this same error directly with Firebug on the Tooltip demo page : http://twitter.github.com/bootstrap/javascript.html#tooltips

Do you have any solutions for this issue?

Thanks.