12th June, 11:21
Hi,
I got this error after destroy qtip and resize browser windows: "api is undefined".
This is my code:
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]](http://img401.imageshack.us/img401/1336/capture1j.png)
![[Image: capture2.png]](http://img269.imageshack.us/img269/1907/capture2.png)
![[Image: capture3e.png]](http://img198.imageshack.us/img198/3434/capture3e.png)
![[Image: capture4.png]](http://img191.imageshack.us/img191/820/capture4.png)
What's wrong? Please help me.
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]](http://img401.imageshack.us/img401/1336/capture1j.png)
![[Image: capture2.png]](http://img269.imageshack.us/img269/1907/capture2.png)
![[Image: capture3e.png]](http://img198.imageshack.us/img198/3434/capture3e.png)
![[Image: capture4.png]](http://img191.imageshack.us/img191/820/capture4.png)
What's wrong? Please help me.