Removes deprecated .delegate in favour of .on