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

Uncaught TypeError: Cannot read property 'jquery' of null - when passing null content #275

Closed
dflock opened this issue Nov 10, 2011 · 2 comments
Assignees

Comments

@dflock
Copy link

dflock commented Nov 10, 2011

If you do this:

http://jsfiddle.net/fDavN/2052/

you get this in the console:

Uncaught TypeError: Cannot read property 'jquery' of null.

Essentially, if you pass NULL content in, you get a type error in the console and qTip stops working. My actual code is a bit more involved, but that's the reduced test case.

A simple fix would be to add this line after line 69 of jquery.qtip.js:

if(opts.content === NULL) { return FALSE; }
@Craga89
Copy link
Contributor

Craga89 commented Nov 13, 2011

Fixed :)

@Craga89 Craga89 closed this as completed Nov 13, 2011
@dflock
Copy link
Author

dflock commented Nov 16, 2011

Sweet - thanks!

@ghost ghost assigned Craga89 Nov 27, 2012
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

2 participants