Alternative divalent ions compete with calcium to attenuate adhesive dimer formation by neural cadherin.