craigsworks.com - Support Forum

Full Version: [Solved] Error after destroy qtip
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I got this error after destroy qtip and resize browser windows: "api is undefined".
This is my code:
JS Code
$('#searchLink').click(function(e) {
         e.preventDefault();
         var lnk = $(this);
         lnk.qtip({
            content: {
                text: 'Some text here'
            },
            position: {
               corner: {
                  tooltip: 'topRight',
                  target: 'bottomRight'
               }
            },
            show: {
               when: false,
               ready: true
            },
            hide: 'unfocus',
            style: {
               width: 250,
               padding: '10px',
               border: {
                   width: 1,
                   color: '#CBCBCB'
                },
               name: 'light'
            },
            api: {
               onHide: function() {
                   lnk.qtip('destroy');
                }
            }
         });
         return false;
      });

And this is the debug result:
$.fn.qtip.interfaces is undefined but it's length is still 1, so api variable is null.

[Image: capture1j.png]

[Image: capture2.png]

[Image: capture3e.png]

[Image: capture4.png]

What's wrong? Please help me.
ngocluu,

Could you upgrade to the latest branch revision and see if this is still occuring please? The files can be found here:
http://bazaar.launchpad.net/~craig.craig...runk/files
I tried the latest branch version and it works without any errors! Thanks so much.
I am sorry about reviving this bug, but I downloaded the -rc3 version off of the main website...it has this bug so I went to the "trunk" that you suggested and saw many other files.

I only downloaded the jquery.qtip.js, jquery.qtip.min.js files. Do I need other files?

Is the 335 the next version? What or how are version numbers tracked?
bitslayer, the one you were looking at is actually the new 2.0 beta branch.

Checkout the 1.x series branch here for updates: http://bazaar.launchpad.net/~craig.craig.../1.0/files
(12th February 00:29)Craig Wrote: [ -> ]bitslayer, the one you were looking at is actually the new 2.0 beta branch.

Checkout the 1.x series branch here for updates: http://bazaar.launchpad.net/~craig.craig.../1.0/files

This fixed the issue for me as well. I was worried about having to use a different plugin but I really like this one so this is great, thanks Craig!!
Reference URL's