When vinegar is added, an acid, to the latex, the vinegar reacts with the ammonia and neutralized it. Then the rubber coagulated.