Make WordPress Core

Changeset 46747


Ignore:
Timestamp:
11/18/2019 05:05:23 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Twenty Twenty: Fix typos in a variable name and inline comment in assets/js/color-calculations.js.

Props tanvirul.
Fixes #48704.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwenty/assets/js/color-calculations.js

    r46571 r46747  
    3939                maxSaturation = 100,
    4040                minLightness = 30,
    41                 maxLighness = 80,
     41                maxLightness = 80,
    4242                stepSaturation = 2,
    4343                stepLightness = 2,
    … …  
    8787        // We're using `for` loops here because they perform marginally better than other loops.
    8888        for ( s = minSaturation; s <= maxSaturation; s += stepSaturation ) {
    89                 for ( l = minLightness; l <= maxLighness; l += stepLightness ) {
     89                for ( l = minLightness; l <= maxLightness; l += stepLightness ) {
    9090                        pushColor( s, l );
    9191                }
    … …  
    9797        } );
    9898
    99         // If we have AAA-compliant colors, alpways prefer them.
     99        // If we have AAA-compliant colors, always prefer them.
    100100        if ( aaa.length ) {
    101101                this.accentColorsArray = aaa;
Note: See TracChangeset for help on using the changeset viewer.