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

props dougwollison.
fixes #26031, #26032.

Built from https://develop.svn.wordpress.org/trunk@26261


git-svn-id: http://core.svn.wordpress.org/trunk@26167 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-11-19 03:49:09 +00:00
parent 9e201fadff
commit c43e93d935
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
( function( $ ) {
var body = $( 'body' ),
_window = $( window );
_window = $( window );
// Enable menu toggle for small screens.
( function() {
@ -48,7 +48,7 @@
// Search toggle.
$( '.search-toggle' ).on( 'click.twentyfourteen', function() {
var that = $( this ),
wrapper = $( '.search-box-wrapper' );
wrapper = $( '.search-box-wrapper' );
that.toggleClass( 'active' );
wrapper.toggleClass( 'hide' );
@ -65,7 +65,7 @@
* The callback on the scroll event is only added if there is a header
* image and we are not on mobile.
*/
if ( _window.width() > 781 ) {
if ( _window.width() > 781 ) {
var mastheadHeight = $( '#masthead' ).height(),
toolbarOffset, mastheadOffset;

View File

@ -244,7 +244,7 @@
localY = e.touches[0].pageY;
offset = ( slider.animatingTo === slider.last ) ? 0 :
( slider.currentSlide === slider.last ) ? slider.limit : ( slider.currentSlide + slider.cloneOffset ) * cwidth;
( slider.currentSlide === slider.last ) ? slider.limit : ( slider.currentSlide + slider.cloneOffset ) * cwidth;
startX = localX;
startY = localY;