dropindex seems to actually be undefined if you don't move it out of its place. This causes an error in the console. Test for undefined before testing for equal index.
Contributor License Agreement adherence:
[x] This Contribution is under the terms of Individual Contributor License Agreements (and also Corporate Contributor License Agreements to the extent applicable) appearing in the Apereo CLA roster.
dropindex seems to actually be undefined if you don't move it out of its place. This causes an error in the console. Test for undefined before testing for equal index.
Contributor License Agreement adherence: