vector.js: Replace deprecated jQuery bind() with on()

> JQMIGRATE: jQuery.fn.bind() is deprecated

Note that bind() is not removed in v3, merely deprecated.
Even after the jQuery Migrate phase, it will continue to work.

https://jquery.com/upgrade-guide/3.0/

Ref I3c3dedaa.

Bug: T124742
Change-Id: I6bbd8f829ecf987228c6a5abd32c84e4e088a9bd
This commit is contained in:
Timo Tijhof 2016-11-21 18:08:39 -08:00
parent 0b77c0e239
commit a1526f3ffd
1 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ jQuery( function ( $ ) {
// Bind callback functions to animate our drop down menu in and out
// and then call the collapsibleTabs function on the menu
$tabContainer
.bind( 'beforeTabCollapse', function () {
.on( 'beforeTabCollapse', function () {
// If the dropdown was hidden, show it
if ( $cactions.hasClass( 'emptyPortlet' ) ) {
$cactions
@ -63,7 +63,7 @@ jQuery( function ( $ ) {
.css( 'width', '1px' ).animate( { width: initialCactionsWidth() }, 'normal' );
}
} )
.bind( 'beforeTabExpand', function () {
.on( 'beforeTabExpand', function () {
// If we're removing the last child node right now, hide the dropdown
if ( $cactions.find( 'li' ).length === 1 ) {
$cactions.find( 'h3' ).animate( { width: '1px' }, 'normal', function () {