38878a095af9e2d041b17e6199b8176bf09d48df kate Tue May 13 10:59:59 2014 -0700 jshint doesn't like global variables used in iterators. refs #13255 diff --git src/hg/js/encodeDataSummary.js src/hg/js/encodeDataSummary.js index 85e98e2..1ec853c 100644 --- src/hg/js/encodeDataSummary.js +++ src/hg/js/encodeDataSummary.js @@ -73,33 +73,33 @@ if (!antibody) { return true; } dataType = encodeProject.targetFromAntibody(antibody); if (!dataType) { // this excludes controls return true; } addDataType(dataType, tfbsExps, true); } }); // work-around for some supplementary files being accessioned as experiments (5C) // they show up in both reference genome and cell assay lists incorrectly // remove them from refGenome list of they are in cellAssayExps - for (dataType in refGenomeExps) { - if (cellAssayExps[dataType] !== undefined) { - delete refGenomeExps[dataType]; + for (var dType in refGenomeExps) { + if (cellAssayExps[dType] !== undefined) { + delete refGenomeExps[dType]; } } // fill in tables and activate buttons tableOut('#refGenomeTable', refGenomeTypes, refGenomeExps, false); tableOut('#elementTable', elementTypes, cellAssayExps, false); tableOut('#tfbsTable', tfbsTypes, tfbsExps, true); if (encodeProject.isIE7()) { // disable buttons on IE7 -- not yet able to display matrix column headers adequately $('#buttonDataMatrix').remove(); $('#buttonChipMatrix').remove(); } else { $('#buttonDataMatrix').click(function () { window.location = encodeMatrix.pageFor('dataMatrix', encodeMatrix_organism); });