Check for deleted menus or something. It fixes a JS error. props koopersmith, see #13215.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14394 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-05-03 19:35:54 +00:00
parent a7e2ac2fec
commit 9dd4702113
1 changed files with 4 additions and 3 deletions

View File

@ -409,9 +409,10 @@ var WPNavMenuHandler = function ($) {
$.fn.extend({
makeTabVisible : function() {
var t = this.eq(0),
left = t.offset().left,
right = left + t.outerWidth();
var t = this.eq(0), left, right;
if( ! t.length ) return;
left = t.offset().left;
right = left + t.outerWidth();
if( right > fixedRight )
fluid.animate({ 'margin-left' : "+=" + (fixedRight - right) + 'px', }, 'fast');
else if ( left < fixedLeft )