9fcaa31c8804e83206a790dd129f239cbdcd180b
kate
  Wed Oct 12 15:12:54 2011 -0700
Prettify a bit.  Using -k option of jsbeautify allows this layout of array literals
diff --git src/hg/js/encodeChipMatrix.js src/hg/js/encodeChipMatrix.js
index 2afc3f0..ebf22d9 100644
--- src/hg/js/encodeChipMatrix.js
+++ src/hg/js/encodeChipMatrix.js
@@ -1,27 +1,30 @@
 // encodeChipMatrix.js - pull experiment table and metadata from server 
 //      and display ChIP antibodies vs. cell types in a matrix
-
-// Formatted: jsbeautify.py -j
+// Formatted: jsbeautify.py -j -k
 // Syntax checked: jslint indent:4, plusplus: true, continue: true, unparam: true, sloppy: true, browser: true */
 /*global $, encodeProject */
 
 $(function () {
-    var requests = [
+    var dataType;
+    var requests =
     // Requests to server API
-    encodeProject.serverRequests.experiment, encodeProject.serverRequests.cellType, encodeProject.serverRequests.antibody],
-        dataType;
+    [
+        encodeProject.serverRequests.experiment,
+        encodeProject.serverRequests.cellType,
+        encodeProject.serverRequests.antibody
+        ];
 
     function tableOut(matrix, cellTiers, cellTypeHash, antibodyGroups, antibodyHash, targetHash) {
         // Create table where rows = cell types and columns are datatypes
         // create table and first row 2 rows (column title and column headers)
         var table, tableHeader, row, td;
 
         table = $('<table>' + '<tr><td><td class="axisType" colspan=6>Antibody Targets</td></tr>' + '<tr id="columnHeaders"><td class="axisType">Cell Types</td></tr>');
         tableHeader = $('#columnHeaders', table);
         $.each(antibodyGroups, function (i, group) {
             tableHeader.append('<th class="groupType"><div class="verticalText">' + group.label + '</div></th>');
             $.each(group.targets, function (i, target) {
                 if (targetHash[target] === undefined) {
                     return true;
                 }
                 // prune out targets with no experiments