Issue #1802072 by fubhy, Stalski: Ajax callbacks should be callbacks defined as function or class method.