<!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" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { 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 #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#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>
<title>[17266] trunk/wp-includes: Check for a property of the object as well.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/17266">17266</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2011-01-12 06:11:18 +0000 (Wed, 12 Jan 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>Check for a property of the object as well. props koopersmith, see <a href="http://trac.wordpress.org/ticket/16194">#16194</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpincludesjsadminbardevjs">trunk/wp-includes/js/admin-bar.dev.js</a></li>
<li><a href="#trunkwpincludesjsadminbarjs">trunk/wp-includes/js/admin-bar.js</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpincludesjsadminbardevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/admin-bar.dev.js (17265 => 17266)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/admin-bar.dev.js        2011-01-12 00:32:00 UTC (rev 17265)
+++ trunk/wp-includes/js/admin-bar.dev.js        2011-01-12 06:11:18 UTC (rev 17266)
</span><span class="lines">@@ -38,7 +38,7 @@
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="cx">                 // Remove any selected classes.
</span><del>-                if ( hovering ) {
</del><ins>+                if ( hovering &amp;&amp; hovering.parentNode ) {
</ins><span class="cx">                         ul = hovering.parentNode;
</span><span class="cx">                         if ( ul &amp;&amp; 'UL' == ul.nodeName.toUpperCase() ) {
</span><span class="cx">                                 i = ul.childNodes.length;
</span></span></pre></div>
<a id="trunkwpincludesjsadminbarjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/admin-bar.js (17265 => 17266)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/admin-bar.js        2011-01-12 00:32:00 UTC (rev 17265)
+++ trunk/wp-includes/js/admin-bar.js        2011-01-12 06:11:18 UTC (rev 17266)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(i,k){var c=function(n,m,d){if(n.addEventListener){n.addEventListener(m,d,false)}else{if(n.attachEvent){n.attachEvent(&quot;on&quot;+m,function(){return d.call(n,window.event)})}}},e,f=new RegExp(&quot;\\bhover\\b&quot;,&quot;g&quot;),a=[],j=new RegExp(&quot;\\bselected\\b&quot;,&quot;g&quot;),g=function(m){var d=a.length;while(d--){if(a[d]&amp;&amp;m==a[d][1]){return a[d][0]}}return false},h=function(s){var n,d,q,m,p,r,u=[],o=0;while(s&amp;&amp;s!=e&amp;&amp;s!=i){if(&quot;LI&quot;==s.nodeName.toUpperCase()){u[u.length]=s;d=g(s);if(d){clearTimeout(d)}s.className=s.className?(s.className.replace(f,&quot;&quot;)+&quot; hover&quot;):&quot;hover&quot;;m=s}s=s.parentNode}if(m){p=m.parentNode;if(p&amp;&amp;&quot;UL&quot;==p.nodeName.toUpperCase()){n=p.childNodes.length;while(n--){r=p.childNodes[n];if(r!=m){r.className=r.className?r.className.replace(j,&quot;&quot;):&quot;&quot;}}}}n=a.length;while(n--){q=false;o=u.length;while(o--){if(u[o]==a[n][1]){q=true}}if(!q){a[n][1].className=a[n][1].className?a[n][1].className.replace(f,&quot;&quot;):&quot;&quot;}}},l=function(d){while(d&amp;&amp;d!=e&amp;&amp;d!=i){if(&quot;LI&quot;==d.nodeName.toUpperCase()){(function(m){var n=setTimeout(function(){m.className=m.className?m.className.replace(f,&quot;&quot;):&quot;&quot;},500);a[a.length]=[n,m]})(d)}d=d.parentNode}},b=function(p){var n,d,o,m=p.target||p.srcElement;while(true){if(!m||m==i||m==e){return}if(m.className&amp;&amp;-1!=m.className.indexOf(&quot;ab-get-shortlink&quot;)){break}m=m.parentNode}if(p.preventDefault){p.preventDefault()}p.returnValue=false;if(-1==m.className.indexOf(&quot;selected&quot;)){m.className+=&quot; selected&quot;}for(n=0,d=m.childNodes.length;n&lt;d;n++){o=m.childNodes[n];if(o.className&amp;&amp;-1!=o.className.indexOf(&quot;shortlink-input&quot;)){o.focus();o.select();o.onblur=function(){m.className=m.className?m.className.replace(j,&quot;&quot;):&quot;&quot;};break}}return false};c(k,&quot;load&quot;,function(){e=i.getElementById(&quot;wpadminbar&quot;);if(i.body&amp;&amp;e){i.body.appendChild(e);c(e,&quot;mouseover&quot;,function(d){h(d.target||d.srcElement)});c(e,&quot;mouseout&quot;,function(d){l(d.target||d.srcElement)});c(e,&quot;click&quot;,b)}if(k.location.hash){k.scrollBy(0,-32)}})})(document,window);
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(i,k){var c=function(n,m,d){if(n.addEventListener){n.addEventListener(m,d,false)}else{if(n.attachEvent){n.attachEvent(&quot;on&quot;+m,function(){return d.call(n,window.event)})}}},e,f=new RegExp(&quot;\\bhover\\b&quot;,&quot;g&quot;),a=[],j=new RegExp(&quot;\\bselected\\b&quot;,&quot;g&quot;),g=function(m){var d=a.length;while(d--){if(a[d]&amp;&amp;m==a[d][1]){return a[d][0]}}return false},h=function(s){var n,d,q,m,p,r,u=[],o=0;while(s&amp;&amp;s!=e&amp;&amp;s!=i){if(&quot;LI&quot;==s.nodeName.toUpperCase()){u[u.length]=s;d=g(s);if(d){clearTimeout(d)}s.className=s.className?(s.className.replace(f,&quot;&quot;)+&quot; hover&quot;):&quot;hover&quot;;m=s}s=s.parentNode}if(m&amp;&amp;m.parentNode){p=m.parentNode;if(p&amp;&amp;&quot;UL&quot;==p.nodeName.toUpperCase()){n=p.childNodes.length;while(n--){r=p.childNodes[n];if(r!=m){r.className=r.className?r.className.replace(j,&quot;&quot;):&quot;&quot;}}}}n=a.length;while(n--){q=false;o=u.length;while(o--){if(u[o]==a[n][1]){q=true}}if(!q){a[n][1].className=a[n][1].className?a[n][1].className.replace(f,&quot;&quot;):&quot;&quot;}}},l=function(d){while(d&amp;&amp;d!=e&amp;&amp;d!=i){if(&quot;LI&quot;==d.nodeName.toUpperCase()){(function(m){var n=setTimeout(function(){m.className=m.className?m.className.replace(f,&quot;&quot;):&quot;&quot;},500);a[a.length]=[n,m]})(d)}d=d.parentNode}},b=function(p){var n,d,o,m=p.target||p.srcElement;while(true){if(!m||m==i||m==e){return}if(m.className&amp;&amp;-1!=m.className.indexOf(&quot;ab-get-shortlink&quot;)){break}m=m.parentNode}if(p.preventDefault){p.preventDefault()}p.returnValue=false;if(-1==m.className.indexOf(&quot;selected&quot;)){m.className+=&quot; selected&quot;}for(n=0,d=m.childNodes.length;n&lt;d;n++){o=m.childNodes[n];if(o.className&amp;&amp;-1!=o.className.indexOf(&quot;shortlink-input&quot;)){o.focus();o.select();o.onblur=function(){m.className=m.className?m.className.replace(j,&quot;&quot;):&quot;&quot;};break}}return false};c(k,&quot;load&quot;,function(){e=i.getElementById(&quot;wpadminbar&quot;);if(i.body&amp;&amp;e){i.body.appendChild(e);c(e,&quot;mouseover&quot;,function(d){h(d.target||d.srcElement)});c(e,&quot;mouseout&quot;,function(d){l(d.target||d.srcElement)});c(e,&quot;click&quot;,b)}if(k.location.hash){k.scrollBy(0,-32)}})})(document,window);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (17265 => 17266)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2011-01-12 00:32:00 UTC (rev 17265)
+++ trunk/wp-includes/script-loader.php        2011-01-12 06:11:18 UTC (rev 17266)
</span><span class="lines">@@ -262,7 +262,7 @@
</span><span class="cx">         $scripts-&gt;add( 'user-profile', &quot;/wp-admin/js/user-profile$suffix.js&quot;, array( 'jquery', 'password-strength-meter' ), '20100925' );
</span><span class="cx">         $scripts-&gt;add_data( 'user-profile', 'group', 1 );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'admin-bar', &quot;/wp-includes/js/admin-bar$suffix.js&quot;, false, '20110111a' );
</del><ins>+        $scripts-&gt;add( 'admin-bar', &quot;/wp-includes/js/admin-bar$suffix.js&quot;, false, '20110112' );
</ins><span class="cx">         $scripts-&gt;add_data( 'admin-bar', 'group', 1 );
</span><span class="cx">         $scripts-&gt;localize( 'admin-bar', 'adminBarL10n', array(
</span><span class="cx">                 'l10n_print_after' =&gt; 'try{convertEntities(adminBarL10n);}catch(e){};',
</span></span></pre>
</div>
</div>

</body>
</html>