CRM-19432: Updated crmUiWizardStep destroy code so that it triggers off an event...
authorTobias Lounsbury <tobiaslounsbury@gmail.com>
Thu, 29 Sep 2016 19:26:30 +0000 (12:26 -0700)
committerTobias Lounsbury <tobiaslounsbury@gmail.com>
Thu, 29 Sep 2016 19:26:30 +0000 (12:26 -0700)
ang/crmUi.js

index 20bcdbc823b6812cf217102bb03925f7e72ea3bd..482264bf25f57f0c33390b959825382b12cbb860 100644 (file)
             return form.$valid;
           };
           crmUiWizardCtrl.add(scope);
-          element.on('$destroy', function(){
+          scope.$on('$destroy', function(){
             crmUiWizardCtrl.remove(scope);
           });
         }