Fix problem with .trigger() after view is destroyed.