Fix JSHint errors and remove unreachable code. props adamsilverstein. see #25963.
Built from https://develop.svn.wordpress.org/trunk@26778 git-svn-id: http://core.svn.wordpress.org/trunk@26665 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d6ccebf600
commit
71fa7d8e6c
|
@ -339,7 +339,7 @@ themes.view.Details = wp.Backbone.View.extend({
|
||||||
// Checks if the theme screenshot is the old 300px width version
|
// Checks if the theme screenshot is the old 300px width version
|
||||||
// and adds a corresponding class if it's true
|
// and adds a corresponding class if it's true
|
||||||
screenshotCheck: function( el ) {
|
screenshotCheck: function( el ) {
|
||||||
var screenshot, image, width;
|
var screenshot, image;
|
||||||
|
|
||||||
screenshot = el.find( '.screenshot img' );
|
screenshot = el.find( '.screenshot img' );
|
||||||
image = new Image();
|
image = new Image();
|
||||||
|
@ -634,12 +634,6 @@ themes.routes = Backbone.Router.extend({
|
||||||
|
|
||||||
baseUrl: function( url ) {
|
baseUrl: function( url ) {
|
||||||
return themes.data.settings.root + url;
|
return themes.data.settings.root + url;
|
||||||
},
|
|
||||||
|
|
||||||
// Set the search input value based on url
|
|
||||||
search: function( query ) {
|
|
||||||
$( '.theme-search' ).val( query );
|
|
||||||
self.themes.doSearch( query );
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -682,7 +676,6 @@ themes.Run = {
|
||||||
},
|
},
|
||||||
|
|
||||||
routes: function() {
|
routes: function() {
|
||||||
var self = this;
|
|
||||||
// Bind to our global thx object
|
// Bind to our global thx object
|
||||||
// so that the object is available to sub-views
|
// so that the object is available to sub-views
|
||||||
themes.router = new themes.routes();
|
themes.router = new themes.routes();
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue