Updated AbstractDrawElement, to not use identical onVar comparision