Make WordPress Core

Changeset 26208


Ignore:
Timestamp:
11/15/2013 06:36:17 AM (10 years ago)
Author:
nacin
Message:

Residual JSHint fixes in common.js and edit-comments.js.

see #25912, #25979.

Location:
trunk/src/wp-admin/js
Files:
2 edited

Legend:

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

    r26134 r26208  
    692692
    693693// make Windows 8 devices playing along nicely
    694 if ( '-ms-user-select' in document.documentElement.style && navigator.userAgent.match(/IEMobile\/10\.0/) ) {
    695     var msViewportStyle = document.createElement( 'style' );
    696     msViewportStyle.appendChild(
    697         document.createTextNode( '@-ms-viewport{width:auto!important}' )
    698     );
    699     document.getElementsByTagName( 'head' )[0].appendChild( msViewportStyle );
    700 }
     694(function(){
     695    if ( '-ms-user-select' in document.documentElement.style && navigator.userAgent.match(/IEMobile\/10\.0/) ) {
     696        var msViewportStyle = document.createElement( 'style' );
     697        msViewportStyle.appendChild(
     698            document.createTextNode( '@-ms-viewport{width:auto!important}' )
     699        );
     700        document.getElementsByTagName( 'head' )[0].appendChild( msViewportStyle );
     701    }
     702})();
    701703
    702704// internal use
  • trunk/src/wp-admin/js/edit-comments.js

    r26157 r26208  
    1 /* global adminCommentsL10n, thousandsSeparator, list_args, QTags, ajaxurl, wpAjax, commentReply */
    2 var setCommentsList, theList, theExtraList,
     1/* global adminCommentsL10n, thousandsSeparator, list_args, QTags, ajaxurl, wpAjax */
     2var setCommentsList, theList, theExtraList, commentReply,
    33    toggleWithKeyboard = false;
    44
Note: See TracChangeset for help on using the changeset viewer.