Skip to content

Instantly share code, notes, and snippets.

@destroytoday
Created October 13, 2010 04:20
Show Gist options
  • Save destroytoday/623440 to your computer and use it in GitHub Desktop.
Save destroytoday/623440 to your computer and use it in GitHub Desktop.
protected function commitProperties():void
{
if (dirtyDataFlag && data)
{
// do something
if (data.name.search(/[^a-z ]/i > -1)
{
if (data.email)
// do something with data
}
else
{
// do something else with data
}
}
}
dirtyDataFlag = false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment