fix indent: replace spaces with tabs

This commit is contained in:
Maximilian Köhl 2017-08-08 22:53:32 +02:00
parent a2cf23b30c
commit 08e0f5e47b
1 changed files with 15 additions and 15 deletions

View File

@ -734,19 +734,19 @@
var numberOfFragments = toArray( page.querySelectorAll( '.fragment' ) ).length; var numberOfFragments = toArray( page.querySelectorAll( '.fragment' ) ).length;
for ( var currentFragment = 0; currentFragment < numberOfFragments; currentFragment++ ) { for ( var currentFragment = 0; currentFragment < numberOfFragments; currentFragment++ ) {
var clonedPage = page.cloneNode( true ); var clonedPage = page.cloneNode( true );
page.parentNode.insertBefore( clonedPage, page.nextSibling ); page.parentNode.insertBefore( clonedPage, page.nextSibling );
toArray( sortFragments( clonedPage.querySelectorAll( '.fragment' ))).forEach( function ( fragment, fragmentIndex ) { toArray( sortFragments( clonedPage.querySelectorAll( '.fragment' ))).forEach( function ( fragment, fragmentIndex ) {
if ( fragmentIndex <= currentFragment ) { if ( fragmentIndex <= currentFragment ) {
fragment.classList.add( 'visible' ); fragment.classList.add( 'visible' );
} else { } else {
fragment.classList.remove( 'visible' ); fragment.classList.remove( 'visible' );
} }
} ); } );
page = clonedPage; page = clonedPage;
} }
} }
// Show all fragments // Show all fragments
@ -1522,12 +1522,12 @@
} }
/** /**
* Check if this instance is being used to print a PDF with fragments. * Check if this instance is being used to print a PDF with fragments.
*/ */
function isPrintingPDFFragments() { function isPrintingPDFFragments() {
return ( /print-pdf-fragments/gi ).test( window.location.search ); return ( /print-pdf-fragments/gi ).test( window.location.search );
} }