Whenever the legislative body of a city has voted in favor of the repeal of an ordinance protested against by the voters, as provided in this article, and the mayor, or like officer, has vetoed the repeal, the failure of the legislative body to pass the repeal over the veto shall be deemed a refusal to repeal the ordinance.