Support legacy .on events