rem:  if (propagate) { var i = input.i; for (j = i + 1; ; ++j) { if (!locks[j - 1] || $(locks[j - 1]).is('.unlocked')) break; var matched = shift_color(color, reference[input.key], reference[inputs[j].key]); callback(inputs[j], matched, false); } for (j = i - 1; ; --j) { if (!locks[j] || $(locks[j]).is('.unlocked')) break; var matched = shift_color(color, reference[input.key], reference[inputs[j].key]); callback(inputs[j], matched, false); }   preview(); 
add:  if (propagate) { var i = input.i; for (j = i + 1; ; ++j) { if (!locks[j - 1] || $(locks[j - 1]).is('.unlocked')) break; var matched = shift_color(color, reference[input.key], reference[inputs[j].key]); callback(inputs[j], matched, false); } for (j = i - 1; ; --j) { if (!locks[j] || $(locks[j]).is('.unlocked')) break; var matched = shift_color(color, reference[input.key], reference[inputs[j].key]); callback(inputs[j], matched, false); 
context:     function callback(input, color, propagate, colorscheme) {      // Set background/foreground color      $(input).css({        backgroundColor: color,        'color': farb.RGBToHSL(farb.unpack(color))[2] > 0.5 ? '#000' : '#fff'      });      // Change input value      if (input.value && input.value != color) {        input.value = color;        // Update locked values        if (propagate) {          var i = input.i;          for (j = i + 1; ; ++j) {            if (!locks[j - 1] || $(locks[j - 1]).is('.unlocked')) break;            var matched = shift_color(color, reference[input.key], reference[inputs[j].key]);            callback(inputs[j], matched, false);          }          for (j = i - 1; ; --j) {            if (!locks[j] || $(locks[j]).is('.unlocked')) break;            var matched = shift_color(color, reference[input.key], reference[inputs[j].key]);            callback(inputs[j], matched, false);          }          // Update preview          preview();        }        // Reset colorscheme selector        if (!colorscheme) {          resetScheme();        }      }    }
meta: 639	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/639/c11cb4ec24479e801076c094f043f2084b344d0c/color.js/buggy/modules/color/color.js