Various JSHint fixes. see #26446.

git-svn-id: https://develop.svn.wordpress.org/trunk@27131 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2014-02-08 00:51:14 +00:00
parent 2238c7fb7f
commit 522670cef2
6 changed files with 24 additions and 21 deletions

View File

@ -1,4 +1,4 @@
/* global tinymce, QTags, tb_remove */
/* global tinymce, QTags */
// send html to the post editor
var wpActiveEditor, send_to_editor;

View File

@ -370,7 +370,7 @@ $(document).on( 'heartbeat-send.refresh-lock', function( e, data ) {
}(jQuery));
jQuery(document).ready( function($) {
var stamp, visibility, $submitButtons, updateVisibility, updateText,
var stamp, visibility, $submitButtons, updateVisibility, updateText, $content,
sticky = '',
last = 0,
co = $('#content'),
@ -1066,7 +1066,7 @@ jQuery(document).ready( function($) {
if ( ! ( 'ontouchstart' in window ) ) {
// When scrolling with mouse wheel or trackpad inside the Text editor, don't scroll the whole window
var $content = $('#content').on( 'onwheel' in $document[0] ? 'wheel.text-editor-scroll' : 'mousewheel.text-editor-scroll', function( event ) {
$content = $('#content').on( 'onwheel' in $document[0] ? 'wheel.text-editor-scroll' : 'mousewheel.text-editor-scroll', function( event ) {
var delta, origEvent = event.originalEvent;
if ( wp.editor && wp.editor.fullscreen.settings.visible ) {

View File

@ -910,7 +910,7 @@
* @returns {wp.media.view.MediaFrame}
*/
open: function( id, options ) {
var workflow, editor;
var workflow;
options = options || {};

View File

@ -1,4 +1,4 @@
/* global adminpage, wpActiveEditor, quicktagsL10n, wpLink, fullscreen, prompt */
/* global adminpage, wpActiveEditor, quicktagsL10n, wpLink, prompt */
/*
* Quicktags
*

View File

@ -14,6 +14,9 @@
"start" : false,
"stop" : false,
"strictEqual" : false,
"test" : false
"test" : false,
"_" : false,
"jQuery" : false
}
}