With any luck this will apply to California as well.
According to this article, there are several other states and municipalities that have similar laws, including Wisconsin and North Carolina.
http://www.usatoday.com/story/news/nation/2015/05/18/supreme-court-double-taxation/22066863/
Maine will not only withhold from the pay of someone who lives in NH and works in ME but will withhold from their spouse as well.
Never could figure that one out