Effect of magnesium and calcium ions on the release of acetylcholine