rem: $(this).addClass('unlocked'); $(hooks[i - 1]).attr('class', locks[i - 2] && $(locks[i - 2]).is(':not(.unlocked)') ? 'hook up' : 'hook' ); $(hooks[i]).attr('class', locks[i] && $(locks[i]).is(':not(.unlocked)') ? 'hook down' : 'hook' ); }, 
add: $(this).removeClass('unlocked'); $(hooks[i - 1]).attr('class', locks[i - 2] && $(locks[i - 2]).is(':not(.unlocked)') ? 'hook both' : 'hook down' ); $(hooks[i]).attr('class', locks[i] && $(locks[i]).is(':not(.unlocked)') ? 'hook both' : 'hook up' ); } 
context:           function () {            $(this).addClass('unlocked');            $(hooks[i - 1]).attr('class',              locks[i - 2] && $(locks[i - 2]).is(':not(.unlocked)') ? 'hook up' : 'hook'            );            $(hooks[i]).attr('class',              locks[i] && $(locks[i]).is(':not(.unlocked)') ? 'hook down' : 'hook'            );          },
meta: 639	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/639/c11cb4ec24479e801076c094f043f2084b344d0c/color.js/buggy/modules/color/color.js