jQuery UI 1.9.2是否完全兼容jQuery 1.9.1



我目前在网站上使用jQuery 1.9.1和jQuery UI 1.9.2,我们正在浏览Chrome控制台日志中的jQuery Migrate 1.1.1警告,并尽可能修复。

首先,我在Chrome中看到这个警告:

JQMIGRATE: jQuery.fn.andSelf() replaced by jQuery.fn.addBack() jquery-migrate-1.1.1.js:40
console.trace() jquery-migrate-1.1.1.js:42
migrateWarn jquery-migrate-1.1.1.js:42
jQuery.fn.andSelf jquery-migrate-1.1.1.js:321
$.widget._getHandle jquery-ui-1.9.2.js:1273
(anonymous function) jquery-ui-1.9.2.js:432
$.widget._mouseCapture jquery-ui-1.9.2.js:1086
(anonymous function) jquery-ui-1.9.2.js:432
$.widget._mouseDown jquery-ui-1.9.2.js:929
(anonymous function) jquery-ui-1.9.2.js:432
(anonymous function) jquery-ui-1.9.2.js:891
jQuery.event.dispatch jquery-1.9.1.js:3074
elemData.handle jquery-1.9.1.js:2750

在查看了jquery-1.9.1.js的第5678行(不错的数字:))之后,我看到了这个:

jQuery.fn.andSelf = jQuery.fn.addBack;

,所以在生产服务器上没有jquery- migration -1.1.1.js(其他如$. js)时它仍然可以工作。浏览器会产生运行时错误)。

我还查看了jquery-ui-1.10.2.js,发现_getHandle被重构了,不再使用andSelf。

我的问题是,我怎么知道哪个jquery- migration警告必须修复,哪个可以安全使用(并在以后修复)?"已弃用"是否足够?

谢谢,

根据jQuery UI wiki的发布历史, jQuery UI 1.9.2版本与jQuery 1.6+版本完全兼容

我正在使用jquery-ui对话框,我看到它使用在jquery 1.9中弃用的$.browser,我得到一个错误消息。

但是,我没有得到jquery-ui 1.10.3的错误。

最新更新