console.log("count " + existrows.count + " min " + minlength); 
  function makeEnabledUpdater(nameBase, existrows, minlength, maxlength) {    var removeenabled = true;    var addcontrol = $it(nameBase + 'add-row');    return function () {      console.log("count " + existrows.count + " min " + minlength);      var makeremoveenabled = existrows.count > minlength;      if (removeenabled ^ makeremoveenabled) {        for (var row in existrows) {          if (row == 'count') continue;          var removec = getControl(nameBase, row, 'remove');          console.log("control " + removec.id + " " + makeremoveenabled);          removec.disabled = !makeremoveenabled;          }        removeenabled = makeremoveenabled;        }      var makeaddenabled = existrows.count < maxlength;      console.log("Add control " + addcontrol.id + " enabled " + makeaddenabled);      addcontrol.disabled = !makeaddenabled;      };    }
7245	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7245/30ebcd2ac8a1922b5e093cf419e1fedc68d224ba/dynamic-list-input.js/buggy/templates/src/webapp/content/js/dynamic-list-input.js