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

前端 未结 3 696
盖世英雄少女心
盖世英雄少女心 2020-12-30 23:49

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.wi         


        
相关标签:
3条回答
  • 2020-12-31 00:30

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

    0 讨论(0)
  • 2020-12-31 00:45

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

    0 讨论(0)
  • 2020-12-31 00:46

    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

    0 讨论(0)
提交回复
热议问题