         else
         {
             if (activeView)
-            {                
+            {            
                 if ((activeView.destructionPolicy != ContainerDestructionPolicy.NEVER && 
                     destructionPolicy != ContainerDestructionPolicy.NEVER) ||
                     !maintainNavigationStack)

            if (!maintainNavigationStack)
                navigationStack.popToFirstView();
        }
    }
    
    //----------------------------------

        
        if (!currentView)
            return;
        
        // Deactivate the view if it is active
        if (currentView.active)
            currentView.setActive(false);
        
        removeElement(currentView);
        
