set on/bind event compatibility with elgg versions