There are 2 endings to the episode "Inna-Gadda-Sabrina", the first one involves Salem leaving for Philidelphia (which explains his appearance in "Boy Meets World") and the ending in other airings and syndication involve Salem getting the time ball out of his system by using the litterbox (off-screen).
There are also two endings to the pilot episode. The first one Salem tells Sabrina how to use magic to get a glass of milk and on the second one Salem tries to tell the audience that they are under his control, but leaves when he hears a can opener. "Please be tuna." "Please be tuna."