Suppress deprecation for item implementing ::on