Twenty Sixteen: Replace deprecated unbind method with off.

This fixes a `Deprecated jQuery.fn.unbind()` notice.

Props Malae, dilipbheda, sabernhardt, audrasjb.
Fixes #58225.




git-svn-id: https://develop.svn.wordpress.org/trunk@56102 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras
2023-06-29 06:28:56 +00:00
parent d966798bfc
commit 7fa7d39c07

View File

@@ -94,7 +94,7 @@
}
} );
} else {
siteNavigation.find( '.menu-item-has-children > a' ).unbind( 'touchstart.twentysixteen' );
siteNavigation.find( '.menu-item-has-children > a' ).off( 'touchstart.twentysixteen' );
}
}