What's wrong with the code, I am unable to stop setInterval.
Error: changedHandler_BB is undefined.
...
var changedHandler_BB = setInterval(function() {
$("#wc_room_container_BB").addClass('active_chat_block_blink_effect');
setTimeout(function() {
$("#wc_room_container_BB").removeClass('active_chat_block_blink_effect');
}, 500);
}, 1000);
...
$("#wc_block_BB").click(function(){
var newID = $("#LatestLastID_BB").val();
$("#worldchat_last_id_BB").val(newID);
clearInterval(changedHandler_BB);
});