                 visible:startView.visible};
             startView.includeInLayout = false;
             
-            if (mode == ZoomViewTransitionMode.OUT)
+            if (mode == "out") // avoid deprecation warning for ZoomViewTransitionMode.OUT
                 startView.visible = false;
         }
         

                visible:endView.visible};
            endView.includeInLayout = false;
            
            if (mode == ZoomViewTransitionMode.IN)
                endView.visible = false;
        }
        

        // transitioning in or out.
        if (consolidatedTransition)
        {
            if (mode == "out") // avoid deprecation warning for ZoomViewTransitionMode.OUT
            {
                targetSnapshot = cachedNavigator;
                targetSnapshotGlobalPosition = cachedNavigationGroupGlobalPosition.clone();
