fab82d74b3ae52f2c68e513088104404fdf59edf tdreszer Thu May 9 12:45:08 2013 -0700 Fixed minor js warning. diff --git src/hg/js/alleles.js src/hg/js/alleles.js index 9df2f4a..91e5df9 100644 --- src/hg/js/alleles.js +++ src/hg/js/alleles.js @@ -215,31 +215,31 @@ hiliteRemove(); hiliteAllDiffs(); if (hiliteId != '') hiliteSpecial( hiliteId ); } } function hiliteAllDiffs() { // Adds all hilites // TODO: // - handle indels // Don't even bother if full sequence isn't showing var fullSeq = $('input#'+sectionName+'_fullSeq'); - if (fullSeq != undefined && $(fullSeq).val().indexOf('Hide') === -1) + if (fullSeq.length != 0 && $(fullSeq).val().indexOf('Hide') === -1) return; // DNA view or AA view? var spans; var dnaView = $('input#'+sectionName+'_dnaView'); if (dnaView != undefined && $(dnaView).val().indexOf('DNA') === -1) { spans = $('table#alleles').find('TH.seq').find('B'); } else { // AA view spans = $('table#alleles').find('TH.seq').find('span'); } // At this point, hilighting should be identical $(spans).each(function (ix) { var xPx = $(this).position().left; var widthPx = $(this).width(); if (widthPx === 0)