8c4229961023586cb5ecb18183eb5020e8c2a600
tdreszer
  Fri Jan 20 17:10:40 2012 -0800
Vanessa found an invalid debug assert.  It has been removed so that the 100 Genomes cov track is not getting erroneous errors'
diff --git src/hg/js/subCfg.js src/hg/js/subCfg.js
index 7ffbb9f..3d8bc6f 100644
--- src/hg/js/subCfg.js
+++ src/hg/js/subCfg.js
@@ -720,46 +720,44 @@
 
             if(metadataIsVisible(subtrack))
                 metadataShowHide(subtrack,"","");
             if ($(cfg).hasClass('filled'))
                 $(cfg).show();
             else
                 waitOnFunction( subCfg.cfgPopulate, cfg, subtrack );
         } else
             $(cfg).hide();
         return false; // called by link!
     },
 
     viewInit: function (viewTag)
     { // sets up view controls for propagation
         var tr = normed($('tr#tr_cfg_'+viewTag));
-        if (tr == undefined) {
-            warn('DEBUG: Did not find view: ' + viewTag);
-            return;
-        }
+        if (tr != undefined) {
         // iterate through all matching controls and setup for propgation and change flagging
         var viewObjs = $(tr).find('input,select');
         if (viewObjs.length > 0) {
             $(viewObjs).each(function (i) {
                 if (this.type != 'hidden') {
                     $(this).bind('change',function (e) {
                         subCfg.markChange(e,this);
                         subCfg.propagateSetting(this);
                     });
                 }
             });
         }
+        }
 
         // Now vis control
         var viewVis = normed($("select.viewDD."+viewTag));
         if (viewVis == undefined) {
             warn('DEBUG: Did not find visibility control for view: ' + viewTag);
             return;
         }
         $(viewVis).bind('change',function (e) {
             subCfg.markChange(e,viewVis);
             subCfg.propagateVis(viewVis,viewTag);
         });
     },
 
     initialize: function ()
     { // sets up all composite controls and then all view controls