rem:  var top = farb.unpack(inputs[2].value); var bottom = farb.unpack(inputs[3].value); if (top && bottom) { var delta = []; for (i in top) { delta[i] = (bottom[i] - top[i]) / h; 
add:  var top = farb.unpack(inputs[2].value); var bottom = farb.unpack(inputs[3].value); if (top && bottom) { var delta = []; for (i in top) { delta[i] = (bottom[i] - top[i]) / h; } var accum = top;   $('#gradient > div', form).each(function () { for (i in accum) { accum[i] += delta[i]; 
context:     function preview() {      // Solid background      $('#preview', form).css('backgroundColor', inputs[0].value);      // Text preview      $('#text', form).css('color', inputs[4].value);      $('#text a, #text h2', form).css('color', inputs[1].value);      // Set up gradient      var top = farb.unpack(inputs[2].value);      var bottom = farb.unpack(inputs[3].value);      if (top && bottom) {        var delta = [];        for (i in top) {          delta[i] = (bottom[i] - top[i]) / h;        }        var accum = top;        // Render gradient lines        $('#gradient > div', form).each(function () {          for (i in accum) {            accum[i] += delta[i];          }          this.style.backgroundColor = farb.pack(accum);        });      }    }
meta: 639	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/639/c11cb4ec24479e801076c094f043f2084b344d0c/color.js/buggy/modules/color/color.js