# componentInspectorSetting..?

**URL:** https://forum.kirupa.com/t/componentinspectorsetting/246142
**Category:** flash
**Created:** [December 7, 2007, 2:41pm UTC](https://forum.kirupa.com/t/componentinspectorsetting/246142 "2007-12-07T14:41:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![spasticfantastic](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@spasticfantastic](https://forum.kirupa.com/u/spasticfantastic)
#### Post date: [December 7, 2007, 2:41pm UTC](https://forum.kirupa.com/t/componentinspectorsetting/246142/1 "2007-12-07T14:41:41Z")

</div>

What’s up with this code in setters extending UIComponent, specifically the test for **componentInspectorSetting**?

```auto

public function set restrict(value:String):void {
    if (componentInspectorSetting && value == "") { 
        value = null;
    }
    textField.restrict = value;
}

```
