jQuery UI TypeError: e.widget.extend is not a function

戏子无情 提交于 2019-12-30 02:47:06

问题


I have updated my jQuery files including jQUery UI to use the tooltip feature.

But now Javascript is dieing with the following error:

TypeError: e.widget.extend is not a function

Can anyone help me?


回答1:


jQuery Ui was included twice (second time hidden because of another bug) problem solved




回答2:


I was getting the similar error for tag-it.min.js

b.widget is not a function tag-it.min.js

When I check, found my files were loading in this case

<script src="/scripts/tag-it.min.js">
<script src="/scripts/jquery-ui-1.11.1.js">

Just reverse the order and it is fixed

Might be it can help someone




回答3:


I had to add wp_deregister_script( 'jquery-ui-widget' ); to admin-footer.php for an exception for widgets.php file only.



来源:https://stackoverflow.com/questions/13631325/jquery-ui-typeerror-e-widget-extend-is-not-a-function

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!