/**
  * Exports description for JavaScript.
  * @return array
  */
 private function exportControl(IFormControl $control)
 {
     return $control->isDisabled() ? NULL : array('class' => $control->getClass(), 'rules' => $this->exportRules($control->getRules()), 'opt' => $control instanceof FormControl ? $control->getOptions() : NULL, 'scope' => $control instanceof ISubmitterControl ? (bool) $control->getValidationScope() : NULL);
 }