Exactly. Lincoln won New Jersey in 1860, but New Jersey split its electoral votes. In 1864, McClellan was from New Jersey and ran on an anti-war platform. New Jersey, as the only farming state in the North, would have been very happy to be the only farming state in the Union.
Actually, Stephen Douglas won the popular vote in New Jersey in 1860 (
click here to verify). I don't know why Lincoln won 4 of the state's then-seven electoral votes. Perhaps New Jersey used a Maine-Nebraska-type system for electing its Presidential electors back then, and Douglas only carried one of New Jersey's five congressional districts (probably heavily) even though he won the overall popular vote in the state. I'm not sure, but I'm sure one could look it up on-line somewhere. I have to be getting to bed though.