Residual JSHint fixes in common.js and edit-comments.js.
see #25912, #25979. git-svn-id: https://develop.svn.wordpress.org/trunk@26208 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
aed015478f
commit
3999d50cea
|
@ -691,13 +691,15 @@ var moby6 = {
|
||||||
$( document ).ready( $.proxy( moby6.init, moby6 ) );
|
$( document ).ready( $.proxy( moby6.init, moby6 ) );
|
||||||
|
|
||||||
// make Windows 8 devices playing along nicely
|
// make Windows 8 devices playing along nicely
|
||||||
if ( '-ms-user-select' in document.documentElement.style && navigator.userAgent.match(/IEMobile\/10\.0/) ) {
|
(function(){
|
||||||
|
if ( '-ms-user-select' in document.documentElement.style && navigator.userAgent.match(/IEMobile\/10\.0/) ) {
|
||||||
var msViewportStyle = document.createElement( 'style' );
|
var msViewportStyle = document.createElement( 'style' );
|
||||||
msViewportStyle.appendChild(
|
msViewportStyle.appendChild(
|
||||||
document.createTextNode( '@-ms-viewport{width:auto!important}' )
|
document.createTextNode( '@-ms-viewport{width:auto!important}' )
|
||||||
);
|
);
|
||||||
document.getElementsByTagName( 'head' )[0].appendChild( msViewportStyle );
|
document.getElementsByTagName( 'head' )[0].appendChild( msViewportStyle );
|
||||||
}
|
}
|
||||||
|
})();
|
||||||
|
|
||||||
// internal use
|
// internal use
|
||||||
$(document).bind( 'wp_CloseOnEscape', function( e, data ) {
|
$(document).bind( 'wp_CloseOnEscape', function( e, data ) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* global adminCommentsL10n, thousandsSeparator, list_args, QTags, ajaxurl, wpAjax, commentReply */
|
/* global adminCommentsL10n, thousandsSeparator, list_args, QTags, ajaxurl, wpAjax */
|
||||||
var setCommentsList, theList, theExtraList,
|
var setCommentsList, theList, theExtraList, commentReply,
|
||||||
toggleWithKeyboard = false;
|
toggleWithKeyboard = false;
|
||||||
|
|
||||||
(function($) {
|
(function($) {
|
||||||
|
|
Loading…
Reference in New Issue