      */
     public function get selectionAnchorPosition():int
     {
-        if (stageText != null)
-            return stageText.selectionAnchorIndex;
-        return 0;
+        return stageText ? stageText.selectionAnchorIndex : 0;
     }
 
     //----------------------------------

            else
                stageText.color = defaultStyles["color"];
            
            invalidateStyleFlag = false;
        }
    }

        super.commitProperties();

        if (stageText != null) 
            stageText.editable = _editable && effectiveEnabled;
        
        if (invalidateViewPortFlag)
            updateViewPort();
