Make WordPress Core

Changeset 31814


Ignore:
Timestamp:
03/18/2015 06:30:19 PM (10 years ago)
Author:
lancewillett
Message:

Bundled themes: add documentation for new onResizeARIA function.

See #31527. Props davidakennedy, lancewillett.

Location:
trunk/src/wp-content/themes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfifteen/js/functions.js

    r31644 r31814  
    6161    } )();
    6262
    63     // Add or remove ARIA attributes.
     63    /**
     64     * @summary Add or remove ARIA attributes.
     65     * Uses jQuery's width() function to determine the size of the window and add
     66     * the default ARIA attributes for the menu toggle if it's visible.
     67     * @since Twenty Fifteen 1.1
     68     */
    6469    function onResizeARIA() {
    6570        if ( 955 > $window.width() ) {
  • trunk/src/wp-content/themes/twentyfourteen/js/functions.js

    r31794 r31814  
    122122    } );
    123123
    124     // Add or remove ARIA attributes.
     124    /**
     125     * @summary Add or remove ARIA attributes.
     126     * Uses jQuery's width() function to determine the size of the window and add
     127     * the default ARIA attributes for the menu toggle if it's visible.
     128     * @since Twenty Fourteen 1.4
     129     */
    125130    function onResizeARIA() {
    126131        if ( 781 > _window.width() ) {
  • trunk/src/wp-content/themes/twentythirteen/js/functions.js

    r31785 r31814  
    7575    } )();
    7676
    77     // Add or remove ARIA attributes.
     77    /**
     78     * @summary Add or remove ARIA attributes.
     79     * Uses jQuery's width() function to determine the size of the window and add
     80     * the default ARIA attributes for the menu toggle if it's visible.
     81     * @since Twenty Thirteen 1.5
     82     */
    7883    function onResizeARIA() {
    7984        if ( 643 > _window.width() ) {
Note: See TracChangeset for help on using the changeset viewer.