Use on() instead of delegate().

delegate() is deprecated.