      *  @productversion Flex 4.5
      */  
     private function scheduleAction(action:String, 
-                                    factory:Class = null, 
+                                    viewClass:Class = null, 
                                     data:Object = null, 
-                                    context:String = null,
+                                    context:Object = null,
                                     transition:ViewTransition = null):void
     {
         // If the action queue doesn't exist, create it

     *  @playerversion AIR 2.5
     *  @productversion Flex 4.5
     */
    public function replaceView(factory:Class,
                                data:Object = null,
                                context:String = null,
                                transition:ViewTransition = null):void
    {
        if (factory == null || !canRemoveCurrentView())
            return;
        
        scheduleAction(ViewNavigatorAction.REPLACE_VIEW, factory, data, context, transition);
    }
    
    /**

        var pendingView:View;
        
        // Deactivate the current view
        if (currentViewDescriptor)
        {
            // FIXME (chiedozi): Do we need to remove view from layout?
            currentView = currentViewDescriptor.instance;
            currentView.setActive(false);
            currentView.includeInLayout = false;
            
