test: Make code pass jscs 1.5.0 with Wikimedia code style preset

Change-Id: I385f7d9ca9f641b3ad936605af1f9894a57192e5
This commit is contained in:
James D. Forrester 2015-02-14 12:44:54 -08:00
parent 6080b48064
commit 46c2ae820a
3 changed files with 7 additions and 4 deletions

3
.jscsrc Normal file
View File

@ -0,0 +1,3 @@
{
"preset": "wikimedia"
}

View File

@ -95,7 +95,7 @@
if ( $( data.collapsedContainer + ' ' + data.collapsible ).length > 0 &&
data.expandCondition( $.collapsibleTabs.getSettings( $( data.collapsedContainer ).children(
data.collapsible + ':first' ) ).expandedWidth ) ) {
//move the element from the dropdown to the tab
// move the element from the dropdown to the tab
$el.trigger( 'beforeTabExpand' );
$.collapsibleTabs
.moveToExpanded( data.collapsedContainer + ' ' + data.collapsible + ':first' );

View File

@ -54,16 +54,16 @@ jQuery( function ( $ ) {
$cactions
.removeClass( 'emptyPortlet' )
.find( 'h3' )
.css( 'width', '1px' ).animate( { 'width': originalDropdownWidth }, 'normal' );
.css( 'width', '1px' ).animate( { width: originalDropdownWidth }, 'normal' );
}
} )
.bind( 'beforeTabExpand', function () {
// If we're removing the last child node right now, hide the dropdown
if ( $cactions.find( 'li' ).length === 1 ) {
$cactions.find( 'h3' ).animate( { 'width': '1px' }, 'normal', function () {
$cactions.find( 'h3' ).animate( { width: '1px' }, 'normal', function () {
$( this ).attr( 'style', '' )
.parent().addClass( 'emptyPortlet' );
});
} );
}
} )
.collapsibleTabs( {