      */
     public function set dockIconMenu(value:FlexNativeMenu):void
     {
-    	_dockIconMenu = value;
-
-		if (NativeApplication.supportsDockIcon)
-		{
-			if (nativeApplication.icon is DockIcon)
-				DockIcon(nativeApplication.icon).menu = value.nativeMenu;
-		}
+        _dockIconMenu = value;
+
+        if (NativeApplication.supportsDockIcon)
+        {
+            if (nativeApplication.icon is DockIcon)
+                DockIcon(nativeApplication.icon).menu = value.nativeMenu;
+        }
     }
 
     //----------------------------------

    //  Event handlers
    //
    //--------------------------------------------------------------------------
 	
 	/**
     *  @private
     */
	private function creationCompleteHandler(event:Event):void
	{
		addEventListener(Event.ENTER_FRAME, enterFrameHandler);
		_nativeWindow = systemManager.stage.nativeWindow;
	}
  	
  	/**
     *  @private
     */
  	private function enterFrameHandler(e:Event):void
    {
    	removeEventListener(Event.ENTER_FRAME, enterFrameHandler);

    	// If nativeApplication.nativeApplication.exit() has been called,
    	// the window will already be closed.
    	if (stage.nativeWindow.closed)
    		return;

    	//window properties that have been stored till window exists
    	//now get applied to window
    	stage.nativeWindow.visible = _nativeWindowVisible;
    	dispatchEvent(new AIREvent(AIREvent.WINDOW_COMPLETE));
    	
    	// Now let any invoke events received from nativeApplication
    	// during initialization, flow to our listeners.
    	dispatchPendingInvokes();
    	
    	if (_nativeWindowVisible && activateOnOpen)
    		stage.nativeWindow.activate();
    	stage.nativeWindow.alwaysInFront = _alwaysInFront;
    }

    /**
	 *  @private
	 */
	private function dispatchPendingInvokes():void
	{
		invokesPending = false;
		for each (var event:InvokeEvent in initialInvokes)
		    dispatchEvent(event);
		initialInvokes = null;
	}
	
    /**
	 *  @private
	 */
	private function hideEffectEndHandler(event:Event):void
	{
		_nativeWindow.visible = false;
		
		dispatchEvent(new FlexEvent(FlexEvent.HIDE));
	}

    /**
     *  @private

     *  @private
     */
    private var _minHeight:Number = 0;
    
    /**
     *  @private
     *  Keeps track of whether minHeight property changed so we can
     *  handle it in commitProperties.
     */
    private var minHeightChanged:Boolean = false;

