WordPress.org

Make WordPress Core

Changeset 39081


Ignore:
Timestamp:
11/01/2016 09:23:42 PM (4 years ago)
Author:
davidakennedy
Message:

Twenty Seventeen: Fix supportsInlineSVG() being unnecessarily called twice

  • Also, fix spacing inconsistency in comment.

Props tywayne.

Fixes #38556.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/assets/js/global.js

    r39073 r39081  
    131131
    132132    /**
    133     * Test if inline SVGs are supported.
    134     * @link https://github.com/Modernizr/Modernizr/
    135     */
     133    * Test if inline SVGs are supported.
     134    * @link https://github.com/Modernizr/Modernizr/
     135    */
    136136    function supportsInlineSVG() {
    137137        var div = document.createElement( 'div' );
     
    173173        adjustHeaderHeight();
    174174        setQuotesIcon();
    175         supportsInlineSVG();
    176175        if ( true === supportsInlineSVG() ) {
    177176            document.documentElement.className = document.documentElement.className.replace( /(\s*)no-svg(\s*)/, '$1svg$2' );
Note: See TracChangeset for help on using the changeset viewer.