Make WordPress Core

Changeset 26778


Ignore:
Timestamp:
12/07/2013 07:51:35 AM (13 years ago)
Author:
nacin
Message:

Fix JSHint errors and remove unreachable code. props adamsilverstein. see #25963.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/theme.js

    r26767 r26778  
    340340        // and adds a corresponding class if it's true
    341341        screenshotCheck: function( el ) {
    342                 var screenshot, image, width;
     342                var screenshot, image;
    343343
    344344                screenshot = el.find( '.screenshot img' );
    … …  
    348348                // Width check
    349349                if ( image.width && image.width <= 300 ) {
    350                         el.addClass( 'small-screenshot' );
     350                        el.addClass( 'small-screenshot' );
    351351                }
    352352        }
    … …  
    635635        baseUrl: function( url ) {
    636636                return themes.data.settings.root + url;
    637         },
    638 
    639         // Set the search input value based on url
    640         search: function( query ) {
    641                 $( '.theme-search' ).val( query );
    642                 self.themes.doSearch( query );
    643637        }
    644638});
    … …  
    683677
    684678        routes: function() {
    685                 var self = this;
    686679                // Bind to our global thx object
    687680                // so that the object is available to sub-views
Note: See TracChangeset for help on using the changeset viewer.