Make WordPress Core

Ticket #31527: 31527.twentythirteen.onResizeARIADocBlock.patch

File 31527.twentythirteen.onResizeARIADocBlock.patch, 662 bytes (added by davidakennedy, 10 years ago)

Twenty Thirteen onResizeARIA Doc Block

  • wp-content/themes/twentythirteen/js/functions.js

     
    7474                } );
    7575        } )();
    7676
    77         // Add or remove ARIA attributes.
     77        /**
     78         * @summary Add or remove ARIA attributes.
     79         * Uses jQuery's $window.width() to determine the size of the window and add the default ARIA attributes for the menu toggle if it's on screen.
     80         * @since 4.2
     81         */
    7882        function onResizeARIA() {
    7983                if ( 643 > _window.width() ) {
    8084                        button.attr( 'aria-expanded', 'false' );