Making WordPress.org

Changeset 4465


Ignore:
Timestamp:
12/04/2016 04:30:59 PM (7 years ago)
Author:
obenland
Message:

Fix jshint warnings.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/Gruntfile.js

    r4223 r4465  
    1 /* global module:false, require:function */
     1/* global module:false, require:function, process:object */
    22
    33var webpack       = require( 'webpack' ),
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/section-accordion.js

    r4464 r4465  
    3838                        var height = $section.children().next( 'p,div' ).first().outerHeight( true ) /* embed */ + $section.children().first().outerHeight( true ) /* h2 */;
    3939
    40                         if ( height > parseInt( $toggle.css( 'max-height' ) ) ) {
     40                        if ( height > parseInt( $section.css( 'max-height' ) ) ) {
    4141                            $section.css( 'min-height', height + 'px' );
    4242                        }
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/stats.js

    r4260 r4465  
    1 google.load( "visualization", "1", { packages: ["corechart"] } );
     1/* globals google:object */
     2google.load( 'visualization', '1', { packages: ['corechart'] } );
    23
    34( function( $, settings ) {
     
    4041                    viewWindow: { min: 0 }
    4142                },
    42                 bar: { groupWidth: ( data.getNumberOfRows() > 100 ? "100%" : null ) },
     43                bar: { groupWidth: ( data.getNumberOfRows() > 100 ? '100%' : null ) },
    4344                height: 350,
    4445                width: 532,
     
    5556                }
    5657
    57                 var text = settings.l10n[summary_field];
    58                 var count = parseInt(summary[ summary_field ]).toLocaleString();
     58                var text = settings.l10n[ summary_field ];
     59                var count = parseInt( summary[ summary_field ] ).toLocaleString();
     60                var $newrow = $( '<tr><th scope="row"></th><td>0</td></tr>' );
    5961
    60                 $newrow = $("<tr><th scope='row'></th><td>0</td></tr>");
    6162                $newrow.find( 'th' ).text( text );
    6263                $newrow.find( 'td' ).text( count );
     
    7576                versionList = [],
    7677                index       = 0,
    77                 version, data, formatter;
     78                data, formatter;
    7879
    7980            // Gather and sort the list of versions.
     
    8687                a = a.split( '.' );
    8788                b = b.split( '.' );
    88                 return ( a[0] != b[0] ) ? a[0]-b[0] : a[1]-b[1];
     89                return ( a[0] !== b[0] ) ? a[0]-b[0] : a[1]-b[1];
    8990            } );
    9091
Note: See TracChangeset for help on using the changeset viewer.