Montclair, Calif. passed a bylaw prohibiting people from crossing the street while text messaging, talking on a phone or listening to music with earbuds in both ears.