From 6531ed1efcc41e8d27428b5daa3f5c615a4cef18 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sat, 29 Mar 2014 08:53:16 +0000 Subject: [PATCH] Theme Installer: Remove unused variables and undesired commas. see #27055. Built from https://develop.svn.wordpress.org/trunk@27843 git-svn-id: http://core.svn.wordpress.org/trunk@27677 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/js/theme.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/wp-admin/js/theme.js b/wp-admin/js/theme.js index b143643061..147b1c4ee1 100644 --- a/wp-admin/js/theme.js +++ b/wp-admin/js/theme.js @@ -1100,8 +1100,7 @@ themes.view.InstallerSearch = themes.view.Search.extend({ }, doSearch: _.debounce( function( value ) { - var request = {}, - self = this; + var request = {}; request.search = value; @@ -1126,7 +1125,7 @@ themes.view.InstallerSearch = themes.view.Search.extend({ // Get the themes by sending Ajax POST request to api.wordpress.org/themes // or searching the local cache this.collection.query( request ); - }, 300 ), + }, 300 ) }); themes.view.Installer = themes.view.Appearance.extend({ @@ -1226,8 +1225,7 @@ themes.view.Installer = themes.view.Appearance.extend({ onFilter: function( event ) { var request, $el = $( event.target ), - filter = $el.data( 'filter' ), - self = this; + filter = $el.data( 'filter' ); // Bail if this is already active if ( $el.hasClass( this.activeClass ) ) { @@ -1253,8 +1251,7 @@ themes.view.Installer = themes.view.Appearance.extend({ // Clicking on a checkbox triggers a tag request addFilter: function() { - var self = this, - tags = this.filtersChecked(), + var tags = this.filtersChecked(), request = { tag: tags }; // Get the themes by sending Ajax POST request to api.wordpress.org/themes