From ed89aa5da89f7d470ad38702c96b429f8678ce60 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 24 Mar 2016 16:22:23 +0100 Subject: [PATCH] Improved error handling. --- .../javascripts/app/lib/app_post/task_manager.coffee | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/app/lib/app_post/task_manager.coffee b/app/assets/javascripts/app/lib/app_post/task_manager.coffee index e3102b0e3..027fcbc8e 100644 --- a/app/assets/javascripts/app/lib/app_post/task_manager.coffee +++ b/app/assets/javascripts/app/lib/app_post/task_manager.coffee @@ -251,15 +251,15 @@ class _taskManagerSingleton extends App.Controller return false if !controller # set controller state to active - if controller.active + if controller.active && _.isFunction(controller.active) controller.active(true) # execute controllers show - if controller.show + if controller.show && _.isFunction(controller.show) controller.show(params_app) # update title - if controller.meta + if controller.meta && _.isFunction(controller.meta) meta = controller.meta() @title meta.title @@ -273,11 +273,11 @@ class _taskManagerSingleton extends App.Controller return false if !controller # set controller state to active - if controller.active + if controller.active && _.isFunction(controller.active) controller.active(false) # execute controllers hide - if controller.hide + if controller.hide && _.isFunction(controller.hide) controller.hide() true