简体   繁体   English

qTip jQuery版本冲突

[英]qTip jQuery version conflicts

Is it standard practice to hold an entire project at a certain release of jQuery until I can fix one measly bug? 将整个项目保留在特定版本的jQuery上,直到我可以修复一个小错误,这是标准做法吗?

details: I'm using an older version of qTip because that is what works with jQuery 1.4.2 (the current release when I started the project). 详细信息:我使用的是qTip的较旧版本,因为这适用于jQuery 1.4.2(启动项目时的当前版本)。 It's important to note that the release candidate of qTip does not work with the currently stable jQuery. 重要的是要注意,qTip的候选发布版本不适用于当前稳定的jQuery。

A bug showed up in my qTip functionality where the tool-tips starting animating themselves in from off-screen whereas they should pop-up on the element on mouse-over. 我的qTip功能中出现了一个错误,该错误提示使工具提示从屏幕外开始进行动画处理,而鼠标悬停时它们应该在元素上弹出。

Needless to say, I thought I had broke something but eventually noticed that jQuery had moved up a notch so I moved back to jQuery 1.4.2 and viola, tool-tips work as expected. 不用说,我以为我遇到了麻烦,但最终发现jQuery提升了一个档次,所以我又回到了jQuery 1.4.2和中提琴,工具提示按预期工作。

Now I don't know what to do; 现在我不知道该怎么办; I want to keep the project at the current and stable jQuery library but I'm not sure how to debug for something like this. 我想将项目保留在当前稳定的jQuery库中,但不确定如何调试此类项目。

Also, I don't feel I should be submitting bugs to an old version of an app, either, but maybe I am wrong. 另外,我也不认为应该向旧版本的应用提交错误,但是也许我错了。

Thanks in advance. 提前致谢。

On qTip library replace the line 在qTip库上替换行

if(typeof $(this).data('qtip') == 'object')

with

if($(this).data('qtip') !== null && typeof $(this).data('qtip') == 'object')

Good Luck! 祝好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM