Make WordPress Core

Changeset 27131


Ignore:
Timestamp:
02/08/2014 12:51:14 AM (11 years ago)
Author:
nacin
Message:

Various JSHint fixes. see #26446.

Location:
trunk
Files:
6 edited

Legend:

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

    r26889 r27131  
    622622                highlight_last: adminCommentsL10n.hotkeys_highlight_last,
    623623                prev_page_link_cb: make_hotkeys_redirect('prev'),
    624                 next_page_link_cb: make_hotkeys_redirect('next'), 
     624                next_page_link_cb: make_hotkeys_redirect('next'),
    625625                hotkeys_opts: {
    626626                    disableInInput: true,
  • trunk/src/wp-admin/js/media-upload.js

    r26945 r27131  
    1 /* global tinymce, QTags, tb_remove */
     1/* global tinymce, QTags */
    22// send html to the post editor
    33
  • trunk/src/wp-admin/js/post.js

    r27110 r27131  
    371371
    372372jQuery(document).ready( function($) {
    373     var stamp, visibility, $submitButtons, updateVisibility, updateText,
     373    var stamp, visibility, $submitButtons, updateVisibility, updateText, $content,
    374374        sticky = '',
    375375        last = 0,
     
    10671067    if ( ! ( 'ontouchstart' in window ) ) {
    10681068        // When scrolling with mouse wheel or trackpad inside the Text editor, don't scroll the whole window
    1069         var $content = $('#content').on( 'onwheel' in $document[0] ? 'wheel.text-editor-scroll' : 'mousewheel.text-editor-scroll', function( event ) {
     1069        $content = $('#content').on( 'onwheel' in $document[0] ? 'wheel.text-editor-scroll' : 'mousewheel.text-editor-scroll', function( event ) {
    10701070            var delta, origEvent = event.originalEvent;
    10711071
  • trunk/src/wp-includes/js/media-editor.js

    r27051 r27131  
    911911         */
    912912        open: function( id, options ) {
    913             var workflow, editor;
     913            var workflow;
    914914
    915915            options = options || {};
  • trunk/src/wp-includes/js/quicktags.js

    r26941 r27131  
    1 /* global adminpage, wpActiveEditor, quicktagsL10n, wpLink, fullscreen, prompt */
     1/* global adminpage, wpActiveEditor, quicktagsL10n, wpLink, prompt */
    22/*
    33 * Quicktags
  • trunk/tests/qunit/.jshintrc

    r25992 r27131  
    11{
    22    "globals": {
    3         "asyncTest"      : false,
    4         "deepEqual"      : false,
    5         "equal"          : false,
    6         "expect"         : false,
    7         "module"         : false,
    8         "notDeepEqual"   : false,
    9         "notEqual"       : false,
    10         "notStrictEqual" : false,
    11         "ok"             : false,
    12         "QUnit"          : false,
    13         "raises"         : false,
    14         "start"          : false,
    15         "stop"           : false,
    16         "strictEqual"    : false,
    17         "test"           : false
     3        "asyncTest"      : false,
     4        "deepEqual"      : false,
     5        "equal"          : false,
     6        "expect"         : false,
     7        "module"         : false,
     8        "notDeepEqual"   : false,
     9        "notEqual"       : false,
     10        "notStrictEqual" : false,
     11        "ok"             : false,
     12        "QUnit"          : false,
     13        "raises"         : false,
     14        "start"          : false,
     15        "stop"           : false,
     16        "strictEqual"    : false,
     17        "test"           : false,
     18
     19        "_"              : false,
     20        "jQuery"         : false
    1821    }
    1922}
Note: See TracChangeset for help on using the changeset viewer.