Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
Issue #17 - Fix ESLint errors, including removing extra parentheses.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Kienstra committed Aug 24, 2016
1 parent 73c5b28 commit 3a60aaa
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions js/customize-snapshots-admin.js
@@ -1,4 +1,5 @@
( function( $ ) {
'use strict';

$( function() {
var $link, linkText, linkActions, dataSlug, initializeLink;
Expand Down Expand Up @@ -26,18 +27,18 @@
settingId = $( this ).attr( 'id' );

this.isLinkSetToRemoveSetting = function() {
return ( linkActions[ 0 ] === clickedLinkAction );
return linkActions[ 0 ] === clickedLinkAction;
};

this.hideSettingAndChangeLinkText = function() {
$clickedLink.text( linkText[ 1 ] )
.data( dataSlug, linkActions[ 1 ] )
.after( this.constructHiddenInputWithValue( settingId ) );
.after( this.constructHiddenInputWithValue() );
$settingDisplay.removeAttr( 'open' )
.addClass( 'cs-removed' );
};

this.constructHiddenInputWithValue = function( settingId ) {
this.constructHiddenInputWithValue = function() {
return $( '<input>' ).attr( {
'name': 'customize_snapshot_remove_settings[]',
'type': 'hidden'
Expand All @@ -46,7 +47,7 @@
};

this.isLinkSetToRestoreSetting = function() {
return ( linkActions[ 1 ] === clickedLinkAction );
return linkActions[ 1 ] === clickedLinkAction;
};

this.showSettingAndChangeLinkText = function() {
Expand All @@ -69,4 +70,4 @@
} );

} );
}( jQuery ) );
} )( jQuery );

0 comments on commit 3a60aaa

Please sign in to comment.