From 39197965e48ca53886acd71171aefef0c8c8bea5 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 20 Mar 2014 22:26:53 +0000 Subject: [PATCH] Fixes for `jshint` git-svn-id: https://develop.svn.wordpress.org/trunk@27643 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/theme.js | 2 +- src/wp-includes/js/customize-views.js | 1 - src/wp-includes/js/media-audiovideo.js | 2 +- src/wp-includes/js/media-views.js | 3 +-- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/wp-admin/js/theme.js b/src/wp-admin/js/theme.js index 4f7eebfccf..d5dc9de10d 100644 --- a/src/wp-admin/js/theme.js +++ b/src/wp-admin/js/theme.js @@ -1265,7 +1265,7 @@ themes.RunInstaller = { self.view.trigger( 'theme:close' ); }); - themes.router.on( 'route:upload', function( slug ) { + themes.router.on( 'route:upload', function() { $( 'a.upload' ).trigger( 'click' ); }); diff --git a/src/wp-includes/js/customize-views.js b/src/wp-includes/js/customize-views.js index 263c84c58c..018852d58e 100644 --- a/src/wp-includes/js/customize-views.js +++ b/src/wp-includes/js/customize-views.js @@ -1,4 +1,3 @@ -/* globals _wpCustomizeHeader */ (function( $, wp, _ ) { if ( ! wp || ! wp.customize ) { return; } diff --git a/src/wp-includes/js/media-audiovideo.js b/src/wp-includes/js/media-audiovideo.js index dfc182b47e..ac411ea9c5 100644 --- a/src/wp-includes/js/media-audiovideo.js +++ b/src/wp-includes/js/media-audiovideo.js @@ -1,4 +1,4 @@ -/* global _wpMediaViewsL10n, _wpmejsSettings, MediaElementPlayer */ +/* global _wpMediaViewsL10n, _wpmejsSettings, MediaElementPlayer, tinymce, WPPlaylistView */ (function ($, _, Backbone) { var media = wp.media, l10n = typeof _wpMediaViewsL10n === 'undefined' ? {} : _wpMediaViewsL10n; diff --git a/src/wp-includes/js/media-views.js b/src/wp-includes/js/media-views.js index d082fbd362..aff81b7e4c 100644 --- a/src/wp-includes/js/media-views.js +++ b/src/wp-includes/js/media-views.js @@ -1,5 +1,4 @@ -/* global _wpMediaViewsL10n, _wpmejsSettings, MediaElementPlayer, - confirm, getUserSetting, setUserSetting */ +/* global _wpMediaViewsL10n, confirm, getUserSetting, setUserSetting */ (function($, _){ var media = wp.media, l10n;