<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[31723] trunk/src/wp-includes: Update hoverIntent to 1.8.1.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/31723">31723</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"https://core.trac.wordpress.org/changeset/31723","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>ocean90</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2015-03-11 17:14:34 +0000 (Wed, 11 Mar 2015)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Update hoverIntent to 1.8.1.
props rachelbaker, jesin.
fixes <a href="https://core.trac.wordpress.org/ticket/31505">#31505</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpincludesjsadminbarjs">trunk/src/wp-includes/js/admin-bar.js</a></li>
<li><a href="#trunksrcwpincludesjshoverIntentjs">trunk/src/wp-includes/js/hoverIntent.js</a></li>
<li><a href="#trunksrcwpincludesscriptloaderphp">trunk/src/wp-includes/script-loader.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpincludesjsadminbarjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/js/admin-bar.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/js/admin-bar.js 2015-03-11 16:55:22 UTC (rev 31722)
+++ trunk/src/wp-includes/js/admin-bar.js 2015-03-11 17:14:34 UTC (rev 31723)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3,8 +3,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( typeof(jQuery) != 'undefined' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( typeof(jQuery.fn.hoverIntent) == 'undefined' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> /* jshint ignore:start */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // 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))<j.sensitivity){a(n).off("mousemove.hoverIntent",e);n.hoverIntent_s=1;return j.over.apply(n,[o])}else{g=l;f=k;n.hoverIntent_t=setTimeout(function(){c(o,n)},j.interval)}};var i=function(o,n){n.hoverIntent_t=clearTimeout(n.hoverIntent_t);n.hoverIntent_s=0;return j.out.apply(n,[o])};var b=function(p){var o=jQuery.extend({},p);var n=this;if(n.hoverIntent_t){n.hoverIntent_t=clearTimeout(n.hoverIntent_t)}if(p.type=="mouseenter"){g=o.pageX;f=o.pageY;a(n).on("mousemove.hoverIntent",e);if(n.hoverIntent_s!=1){n.hoverIntent_t=setTimeout(function(){c(o,n)},j.interval
)}}else{a(n).off("mousemove.hoverIntent",e);if(n.hoverIntent_s==1){n.hoverIntent_t=setTimeout(function(){i(o,n)},j.timeout)}}};return this.on({"mouseenter.hoverIntent":b,"mouseleave.hoverIntent":b},j.selector)}})(jQuery);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // hoverIntent v1.8.1 - Copy of wp-includes/js/hoverIntent.min.js
+ !function(a){a.fn.hoverIntent=function(b,c,d){var e={interval:100,sensitivity:6,timeout:0};e="object"==typeof b?a.extend(e,b):a.isFunction(c)?a.extend(e,{over:b,out:c,selector:d}):a.extend(e,{over:b,out:b,selector:c});var f,g,h,i,j=function(a){f=a.pageX,g=a.pageY},k=function(b,c){return c.hoverIntent_t=clearTimeout(c.hoverIntent_t),Math.sqrt((h-f)*(h-f)+(i-g)*(i-g))<e.sensitivity?(a(c).off("mousemove.hoverIntent",j),c.hoverIntent_s=!0,e.over.apply(c,[b])):(h=f,i=g,c.hoverIntent_t=setTimeout(function(){k(b,c)},e.interval),void 0)},l=function(a,b){return b.hoverIntent_t=clearTimeout(b.hoverIntent_t),b.hoverIntent_s=!1,e.out.apply(b,[a])},m=function(b){var c=a.extend({},b),d=this;d.hoverIntent_t&&(d.hoverIntent_t=clearTimeout(d.hoverIntent_t)),"mouseenter"===b.type?(h=c.pageX,i=c.pageY,a(d).on("mousemove.hoverIntent",j),d.hoverIntent_s||(d.hoverIntent_t=setTimeout(function(){k(c,d)},e.interval))):(a(d).off("mousemove.hoverIntent
",j),d.hoverIntent_s&&(d.hoverIntent_t=setTimeout(function(){l(c,d)},e.timeout)))};return this.on({"mouseenter.hoverIntent":m,"mouseleave.hoverIntent":m},e.selector)}}(jQuery);
</ins><span class="cx" style="display: block; padding: 0 10px"> /* jshint ignore:end */
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> jQuery(document).ready(function($){
</span></span></pre></div>
<a id="trunksrcwpincludesjshoverIntentjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/js/hoverIntent.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/js/hoverIntent.js 2015-03-11 16:55:22 UTC (rev 31722)
+++ trunk/src/wp-includes/js/hoverIntent.js 2015-03-11 17:14:34 UTC (rev 31723)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,10 +1,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /*!
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * hoverIntent r7 // 2013.03.11 // jQuery 1.9.1+
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * hoverIntent v1.8.1 // 2014.08.11 // jQuery v1.9.1+
</ins><span class="cx" style="display: block; padding: 0 10px"> * http://cherne.net/brian/resources/jquery.hoverIntent.html
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * You may use hoverIntent under the terms of the MIT license. Basically that
</span><span class="cx" style="display: block; padding: 0 10px"> * means you are free to use hoverIntent as long as this header is left intact.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Copyright 2007, 2013 Brian Cherne
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Copyright 2007, 2014 Brian Cherne
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /* hoverIntent is similar to jQuery's built-in "hover" method except that
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -35,7 +35,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // default configuration values
</span><span class="cx" style="display: block; padding: 0 10px"> var cfg = {
</span><span class="cx" style="display: block; padding: 0 10px"> interval: 100,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- sensitivity: 7,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ sensitivity: 6,
</ins><span class="cx" style="display: block; padding: 0 10px"> timeout: 0
</span><span class="cx" style="display: block; padding: 0 10px"> };
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -62,10 +62,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> var compare = function(ev,ob) {
</span><span class="cx" style="display: block; padding: 0 10px"> ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
</span><span class="cx" style="display: block; padding: 0 10px"> // compare mouse positions to see if they've crossed the threshold
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( ( Math.abs(pX-cX) + Math.abs(pY-cY) ) < cfg.sensitivity ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( Math.sqrt( (pX-cX)*(pX-cX) + (pY-cY)*(pY-cY) ) < cfg.sensitivity ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $(ob).off("mousemove.hoverIntent",track);
</span><span class="cx" style="display: block; padding: 0 10px"> // set hoverIntent state to true (so mouseOut can be called)
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- ob.hoverIntent_s = 1;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ ob.hoverIntent_s = true;
</ins><span class="cx" style="display: block; padding: 0 10px"> return cfg.over.apply(ob,[ev]);
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><span class="cx" style="display: block; padding: 0 10px"> // set previous coordinates for next time
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -78,34 +78,34 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // A private function for delaying the mouseOut function
</span><span class="cx" style="display: block; padding: 0 10px"> var delay = function(ev,ob) {
</span><span class="cx" style="display: block; padding: 0 10px"> ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- ob.hoverIntent_s = 0;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ ob.hoverIntent_s = false;
</ins><span class="cx" style="display: block; padding: 0 10px"> return cfg.out.apply(ob,[ev]);
</span><span class="cx" style="display: block; padding: 0 10px"> };
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // A private function for handling mouse 'hovering'
</span><span class="cx" style="display: block; padding: 0 10px"> var handleHover = function(e) {
</span><span class="cx" style="display: block; padding: 0 10px"> // copy objects to be passed into t (required for event object to be passed in IE)
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- var ev = jQuery.extend({},e);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ var ev = $.extend({},e);
</ins><span class="cx" style="display: block; padding: 0 10px"> var ob = this;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // cancel hoverIntent timer if it exists
</span><span class="cx" style="display: block; padding: 0 10px"> if (ob.hoverIntent_t) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // if e.type == "mouseenter"
- if (e.type == "mouseenter") {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // if e.type === "mouseenter"
+ if (e.type === "mouseenter") {
</ins><span class="cx" style="display: block; padding: 0 10px"> // set "previous" X and Y position based on initial entry point
</span><span class="cx" style="display: block; padding: 0 10px"> pX = ev.pageX; pY = ev.pageY;
</span><span class="cx" style="display: block; padding: 0 10px"> // update "current" X and Y position based on mousemove
</span><span class="cx" style="display: block; padding: 0 10px"> $(ob).on("mousemove.hoverIntent",track);
</span><span class="cx" style="display: block; padding: 0 10px"> // start polling interval (self-calling timeout) to compare mouse coordinates over time
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if (ob.hoverIntent_s != 1) { ob.hoverIntent_t = setTimeout( function(){compare(ev,ob);} , cfg.interval );}
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if (!ob.hoverIntent_s) { ob.hoverIntent_t = setTimeout( function(){compare(ev,ob);} , cfg.interval );}
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // else e.type == "mouseleave"
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><span class="cx" style="display: block; padding: 0 10px"> // unbind expensive mousemove event
</span><span class="cx" style="display: block; padding: 0 10px"> $(ob).off("mousemove.hoverIntent",track);
</span><span class="cx" style="display: block; padding: 0 10px"> // if hoverIntent state is true, then call the mouseOut function after the specified delay
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if (ob.hoverIntent_s == 1) { ob.hoverIntent_t = setTimeout( function(){delay(ev,ob);} , cfg.timeout );}
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if (ob.hoverIntent_s) { ob.hoverIntent_t = setTimeout( function(){delay(ev,ob);} , cfg.timeout );}
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> };
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpincludesscriptloaderphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/script-loader.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/script-loader.php 2015-03-11 16:55:22 UTC (rev 31722)
+++ trunk/src/wp-includes/script-loader.php 2015-03-11 17:14:34 UTC (rev 31723)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -380,7 +380,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $scripts->add( 'media-upload', "/wp-admin/js/media-upload$suffix.js", array( 'thickbox', 'shortcode' ), false, 1 );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $scripts->add( 'hoverIntent', "/wp-includes/js/hoverIntent$suffix.js", array('jquery'), 'r7', 1 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $scripts->add( 'hoverIntent', "/wp-includes/js/hoverIntent$suffix.js", array('jquery'), '1.8.1', 1 );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $scripts->add( 'customize-base', "/wp-includes/js/customize-base$suffix.js", array( 'jquery', 'json2', 'underscore', 'wp-a11y' ), false, 1 );
</span><span class="cx" style="display: block; padding: 0 10px"> $scripts->add( 'customize-loader', "/wp-includes/js/customize-loader$suffix.js", array( 'customize-base' ), false, 1 );
</span></span></pre>
</div>
</div>
</body>
</html>