From e72fdb99214ecacd79fd297e14d2c86fd368e6c2 Mon Sep 17 00:00:00 2001 From: Tobias Lounsbury Date: Thu, 29 Sep 2016 12:26:30 -0700 Subject: [PATCH] CRM-19432: Updated crmUiWizardStep destroy code so that it triggers off an event that is within the digest cycle --- ang/crmUi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ang/crmUi.js b/ang/crmUi.js index 20bcdbc823..482264bf25 100644 --- a/ang/crmUi.js +++ b/ang/crmUi.js @@ -895,7 +895,7 @@ return form.$valid; }; crmUiWizardCtrl.add(scope); - element.on('$destroy', function(){ + scope.$on('$destroy', function(){ crmUiWizardCtrl.remove(scope); }); } -- 2.25.1