qTip jQuery 版本冲突
将整个项目保留在某个版本的 jQuery 上,直到我能够修复一个微小的错误,这是标准做法吗?
细节: 我使用的是旧版本的 qTip 因为它适用于 jQuery 1.4.2(我开始该项目时的当前版本)。需要注意的是,qTip 的候选版本不适用于稳定的 jQuery。
我的 qTip 功能中出现了一个错误,其中工具提示从屏幕外开始以动画方式呈现,而它们应该在鼠标悬停时在元素上弹出。
不用说,我以为我已经破坏了一些东西,但最终注意到 jQuery 已经上升了一个档次,所以我回到了 jQuery 1.4.2 和 viola,工具提示按预期工作。
现在我不知道该怎么办;我想将项目保留在当前且稳定的 jQuery 库中,但我不确定如何调试此类内容。
另外,我也不认为我应该向旧版本的应用程序提交错误,但也许我错了。
提前致谢。
Is it standard practice to hold an entire project at a certain release of jQuery until I can fix one measly bug?
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). It's important to note that the release candidate of qTip does not work with the currently stable 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.
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.
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.
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 qTip 库上,将行
if(typeof $(this).data('qtip') == 'object')
替换为
if($(this).data('qtip') !== null && typeof $(this).data('qtip') == 'object')
祝你好运!
On qTip library replace the line
if(typeof $(this).data('qtip') == 'object')
with
if($(this).data('qtip') !== null && typeof $(this).data('qtip') == 'object')
Good Luck!