jquery + qtip js a.compareDocumentPosition is not a function


This has happened enough times for me to write a quick post. If you are using qtip2 (by the way, thanks Craig Thompson) with jquery, you may see a console error like the one below:


a.compareDocumentPosition is not a function

a.compareDocumentPosition is not a function

a.compareDocumentPosition is not a function

Easy Fix

Just edit your qtip configuration making sure you have “leave” set to “false” in “hide”. see below


hide : { delay : 0, leave: false },

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s