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
This commit is contained in:
Andrew Nacin 2014-03-29 08:53:16 +00:00
parent 3c1cdaa362
commit 6531ed1efc

View File

@ -1100,8 +1100,7 @@ themes.view.InstallerSearch = themes.view.Search.extend({
}, },
doSearch: _.debounce( function( value ) { doSearch: _.debounce( function( value ) {
var request = {}, var request = {};
self = this;
request.search = value; 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 // Get the themes by sending Ajax POST request to api.wordpress.org/themes
// or searching the local cache // or searching the local cache
this.collection.query( request ); this.collection.query( request );
}, 300 ), }, 300 )
}); });
themes.view.Installer = themes.view.Appearance.extend({ themes.view.Installer = themes.view.Appearance.extend({
@ -1226,8 +1225,7 @@ themes.view.Installer = themes.view.Appearance.extend({
onFilter: function( event ) { onFilter: function( event ) {
var request, var request,
$el = $( event.target ), $el = $( event.target ),
filter = $el.data( 'filter' ), filter = $el.data( 'filter' );
self = this;
// Bail if this is already active // Bail if this is already active
if ( $el.hasClass( this.activeClass ) ) { if ( $el.hasClass( this.activeClass ) ) {
@ -1253,8 +1251,7 @@ themes.view.Installer = themes.view.Appearance.extend({
// Clicking on a checkbox triggers a tag request // Clicking on a checkbox triggers a tag request
addFilter: function() { addFilter: function() {
var self = this, var tags = this.filtersChecked(),
tags = this.filtersChecked(),
request = { tag: tags }; request = { tag: tags };
// Get the themes by sending Ajax POST request to api.wordpress.org/themes // Get the themes by sending Ajax POST request to api.wordpress.org/themes