Make WordPress Core

Changeset 26261


Ignore:
Timestamp:
11/19/2013 03:48:55 AM (13 years ago)
Author:
nacin
Message:

Fix spaces/tabs in Twenty Fourteen JS, allowing JSHint to run clean for these files.

props dougwollison.
fixes #26031, #26032.

Location:
trunk/src/wp-content/themes/twentyfourteen/js
Files:
2 edited

Legend:

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

    r26227 r26261  
    11( function( $ ) {
    22        var body    = $( 'body' ),
    3             _window = $( window );
     3                _window = $( window );
    44
    55        // Enable menu toggle for small screens.
    … …  
    4949                $( '.search-toggle' ).on( 'click.twentyfourteen', function() {
    5050                        var that    = $( this ),
    51                             wrapper = $( '.search-box-wrapper' );
     51                                wrapper = $( '.search-box-wrapper' );
    5252
    5353                        that.toggleClass( 'active' );
    … …  
    6666                 * image and we are not on mobile.
    6767                 */
    68                  if ( _window.width() > 781 ) {
     68                if ( _window.width() > 781 ) {
    6969                        var mastheadHeight = $( '#masthead' ).height(),
    7070                                toolbarOffset, mastheadOffset;
  • trunk/src/wp-content/themes/twentyfourteen/js/slider.js

    r26084 r26261  
    245245
    246246                                                offset = ( slider.animatingTo === slider.last ) ? 0 :
    247                                                                  ( slider.currentSlide === slider.last ) ? slider.limit : ( slider.currentSlide + slider.cloneOffset ) * cwidth;
     247                                                                ( slider.currentSlide === slider.last ) ? slider.limit : ( slider.currentSlide + slider.cloneOffset ) * cwidth;
    248248                                                startX = localX;
    249249                                                startY = localY;
Note: See TracChangeset for help on using the changeset viewer.