In: removeTargetClass = function () { this.classList.remove( sortable.targetClass ); }; The "this" is undefined. I guess it's a low priority bug though.