Fix issue #205 problem with the Transition controller calling beforeDeactivate and afterDeactivate sometimes when the view is not active.