Coding Standards: Fix WPCS and JSHint issues in [46872].
See #47069. git-svn-id: https://develop.svn.wordpress.org/trunk@46874 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2133f8392e
commit
7ac5a9f003
@ -10,6 +10,7 @@
|
|||||||
*
|
*
|
||||||
* @return {void}
|
* @return {void}
|
||||||
*/
|
*/
|
||||||
|
/* global hoverintent */
|
||||||
( function( document, window, navigator ) {
|
( function( document, window, navigator ) {
|
||||||
document.addEventListener( 'DOMContentLoaded', function() {
|
document.addEventListener( 'DOMContentLoaded', function() {
|
||||||
var adminBar = document.getElementById( 'wpadminbar' ),
|
var adminBar = document.getElementById( 'wpadminbar' ),
|
||||||
@ -65,7 +66,7 @@
|
|||||||
addHoverClass.bind( null, topMenuItems[i] ),
|
addHoverClass.bind( null, topMenuItems[i] ),
|
||||||
removeHoverClass.bind( null, topMenuItems[i] )
|
removeHoverClass.bind( null, topMenuItems[i] )
|
||||||
).options( {
|
).options( {
|
||||||
timeout: 180,
|
timeout: 180
|
||||||
} );
|
} );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1516,7 +1516,7 @@ function wp_default_scripts( &$scripts ) {
|
|||||||
$scripts->add( 'hoverIntent', "/wp-includes/js/hoverIntent$suffix.js", array( 'jquery' ), '1.8.1', 1 );
|
$scripts->add( 'hoverIntent', "/wp-includes/js/hoverIntent$suffix.js", array( 'jquery' ), '1.8.1', 1 );
|
||||||
|
|
||||||
// JS-only version of hoverintent (no dependencies).
|
// JS-only version of hoverintent (no dependencies).
|
||||||
$scripts->add( 'hoverintent-js', "/wp-includes/js/hoverintent-js.min.js", array(), '2.2.1', 1 );
|
$scripts->add( 'hoverintent-js', '/wp-includes/js/hoverintent-js.min.js', array(), '2.2.1', 1 );
|
||||||
|
|
||||||
$scripts->add( 'customize-base', "/wp-includes/js/customize-base$suffix.js", array( 'jquery', 'json2', 'underscore' ), false, 1 );
|
$scripts->add( 'customize-base', "/wp-includes/js/customize-base$suffix.js", array( 'jquery', 'json2', 'underscore' ), false, 1 );
|
||||||
$scripts->add( 'customize-loader', "/wp-includes/js/customize-loader$suffix.js", array( 'customize-base' ), false, 1 );
|
$scripts->add( 'customize-loader', "/wp-includes/js/customize-loader$suffix.js", array( 'customize-base' ), false, 1 );
|
||||||
|
Loading…
Reference in New Issue
Block a user