PrimeFaces 6.0 and 6.1 - Error in JQuery

0

Including any component of Primefaces in the body of my HTML, it raises this error: Uncaught TypeError: N.delegate is not a function.

Do you know what it would be?

The error is in this second line of jquery-plugins generated by Primefaces

 function g(N) {
        var M = "button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";
        return N.delegate(M, "mouseout", function() {
            y(this).removeClass("ui-state-hover");
            if (this.className.indexOf("ui-datepicker-prev") !== -1) {
                y(this).removeClass("ui-datepicker-prev-hover")
            }
            if (this.className.indexOf("ui-datepicker-next") !== -1) {
                y(this).removeClass("ui-datepicker-next-hover")
            }
        }).delegate(M, "mouseover", function() {
            if (!y.datepicker._isDisabledDatepicker(j.inline ? N.parent()[0] : j.input[0])) {
                y(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");
                y(this).addClass("ui-state-hover");
                if (this.className.indexOf("ui-datepicker-prev") !== -1) {
                    y(this).addClass("ui-datepicker-prev-hover")
                }
                if (this.className.indexOf("ui-datepicker-next") !== -1) {
                    y(this).addClass("ui-datepicker-next-hover")
                }
            }
        })
    }
    
asked by anonymous 21.03.2017 / 13:38

1 answer

0

The .delegate () function was deprecated in JQuery, but the PrimeFaces class used it in version 6.1 RC1, but now in version 6.1 RC2, this bug has been fixed! More oblique to all.

    
21.03.2017 / 17:10