From 6e585ecd0c7233909de5f671c6a123c35904055f Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 14 Nov 2013 05:50:40 +0000 Subject: [PATCH] Fix JSHint errors in admin-bar.js. props kadamwhite. fixes #25970. git-svn-id: https://develop.svn.wordpress.org/trunk@26160 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/admin-bar.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/js/admin-bar.js b/src/wp-includes/js/admin-bar.js index b75823ce8b..ce44436868 100644 --- a/src/wp-includes/js/admin-bar.js +++ b/src/wp-includes/js/admin-bar.js @@ -1,8 +1,11 @@ +/* jshint loopfunc: true */ // use jQuery and hoverIntent if loaded if ( typeof(jQuery) != 'undefined' ) { if ( typeof(jQuery.fn.hoverIntent) == 'undefined' ) { + /* jshint ignore:start */ // hoverIntent r6 - Copy of wp-includes/js/hoverIntent.min.js (function(a){a.fn.hoverIntent=function(m,d,h){var j={interval:100,sensitivity:7,timeout:0};if(typeof m==="object"){j=a.extend(j,m)}else{if(a.isFunction(d)){j=a.extend(j,{over:m,out:d,selector:h})}else{j=a.extend(j,{over:m,out:m,selector:d})}}var l,k,g,f;var e=function(n){l=n.pageX;k=n.pageY};var c=function(o,n){n.hoverIntent_t=clearTimeout(n.hoverIntent_t);if((Math.abs(g-l)+Math.abs(f-k))