Problem with jquery 3.1.0

Problem with jquery 3.1.0

aocneanuaocneanu Posts: 2Questions: 0Answers: 0

When using DT with jQuery 3.1.0 I encountered the following problem:

"TypeError: d(a.target).parents().andSelf is not a function. (In 'd(a.target).parents().andSelf()', 'd(a.target).parents().andSelf' is undefined)"

It seems to be a problem with ".andSelf" function as this was deprecated.

Replies

  • btreebtree Posts: 99Questions: 14Answers: 11

    Hoi,

    seems like it is already fixed in Buttons 1.2.2

    // andSelf is deprecated in jQ1.8, but we want 1.7 compat
        var back = $.fn.addBack ? 'addBack' : 'andSelf';
        if ( ! $(e.target).parents()[back]().filter( config._collection ).length ) {
    

    cheers
    Hannes

  • allanallan Posts: 63,812Questions: 1Answers: 10,516 Site admin

    This is correct - Buttons 1.2.2 addressed this.

    Allan

  • aocneanuaocneanu Posts: 2Questions: 0Answers: 0

    Thank you!

This discussion has been closed.