I am working on a Wordpress site that contains several jQuery and jQuery UI-dependent plugins. Everything seemed to be working fine, but when we moved the entire site to the new domain name, I started to see the following error on the Chrome console:
Uncaught TypeError: object function (b, c, d) {var e = b.split (".") [0], f; b = b.split (".") [1], f = e + "-" + b, d || (d = C, C = a.Widget), a.expr [":"] [F] = function (s) {return !! a.data (c, b)}, a [e] = a [e] || {}, a [e] [b] = function (a, b) {arguments.length && this._createWidget (a, b)}; var g = new c; g.options = a.extend (0, {}, g.options!), and [e] [b] .prototype = a.extend (0, g, {Namespace: e, widgetName: b, widgetEventPrefix !: a [e] [b] .prototype.widgetEventPrefix || b, widgetBaseClass: f}, d), a.widget.bridge (b, a [e] [b])} does not have a 'extend' method
Here is the line in jQuery UI 1.9.3, which apparently causes this:
this.options = $.widget.extend( {}, this.options, this._getCreateOptions(), options );
I seem to be unable to get past this, no matter what I tried to do. I use the correct method (or so I read) to add scripts using wp_enqueue_script () and set jquery as a jquery-ui dependency and view HTML, jQuery really loads before the jQuery UI.
If anyone knows what might happen, I would really appreciate it. It turns me on.
javascript jquery jquery-ui wordpress typeerror
William thomas
source share