diff --git a/src/wp-content/themes/twentyfifteen/js/functions.js b/src/wp-content/themes/twentyfifteen/js/functions.js index b560356c1a..558869ac61 100644 --- a/src/wp-content/themes/twentyfifteen/js/functions.js +++ b/src/wp-content/themes/twentyfifteen/js/functions.js @@ -60,7 +60,12 @@ } ); } )(); - // Add or remove ARIA attributes. + /** + * @summary Add or remove ARIA attributes. + * Uses jQuery's width() function to determine the size of the window and add + * the default ARIA attributes for the menu toggle if it's visible. + * @since Twenty Fifteen 1.1 + */ function onResizeARIA() { if ( 955 > $window.width() ) { button.attr( 'aria-expanded', 'false' ); diff --git a/src/wp-content/themes/twentyfourteen/js/functions.js b/src/wp-content/themes/twentyfourteen/js/functions.js index d50443940a..603e1379a0 100644 --- a/src/wp-content/themes/twentyfourteen/js/functions.js +++ b/src/wp-content/themes/twentyfourteen/js/functions.js @@ -121,7 +121,12 @@ } ); } ); - // Add or remove ARIA attributes. + /** + * @summary Add or remove ARIA attributes. + * Uses jQuery's width() function to determine the size of the window and add + * the default ARIA attributes for the menu toggle if it's visible. + * @since Twenty Fourteen 1.4 + */ function onResizeARIA() { if ( 781 > _window.width() ) { button.attr( 'aria-expanded', 'false' ); diff --git a/src/wp-content/themes/twentythirteen/js/functions.js b/src/wp-content/themes/twentythirteen/js/functions.js index 522457bf80..eb17a0fb1b 100644 --- a/src/wp-content/themes/twentythirteen/js/functions.js +++ b/src/wp-content/themes/twentythirteen/js/functions.js @@ -74,7 +74,12 @@ } ); } )(); - // Add or remove ARIA attributes. + /** + * @summary Add or remove ARIA attributes. + * Uses jQuery's width() function to determine the size of the window and add + * the default ARIA attributes for the menu toggle if it's visible. + * @since Twenty Thirteen 1.5 + */ function onResizeARIA() { if ( 643 > _window.width() ) { button.attr( 'aria-expanded', 'false' );