Updated to v 1.2.14 and changed addClass to beforeAddClass