Skip to content
This repository has been archived by the owner on Jun 14, 2020. It is now read-only.

qtip('disable') fails if tooltip not rendered before #565

Closed
bornste opened this issue Jul 25, 2013 · 0 comments
Closed

qtip('disable') fails if tooltip not rendered before #565

bornste opened this issue Jul 25, 2013 · 0 comments

Comments

@bornste
Copy link

bornste commented Jul 25, 2013

If a qTip wasn't rendered and $('.selector').qtip('disable') is called the script fails with the error 'Cannot call method 'hasClass' of null'. If calling $('.selector').qtip('disable', true) it works as expected.

The cause is that 'this.tooltip' is accessed in PROTOTYPE.disable without checking if the tooltip was rendered.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant