I was thinking about the scene on the train, and I wonder if Joker didn't deliberately get them to attack him. Later he says he doesn't have a condition at all, that he laughs at things he finds funny.

He starts laughing when they are accosting the woman, and keeps doing it until he shoots them. Then he goes silent and does the dance.