public function toArray()
{
$ret = $this->_options === null ? array() : $this->_options;
foreach ($this->_control->getValidEvents() as $event) {
if ($this->_control->hasEventHandler('on' . $event)) {
$ret[$event] = new TJavaScriptLiteral("function( event, ui ) { Prado.JuiCallback(" . TJavaScript::encode($this->_control->getUniqueID()) . ", " . TJavaScript::encode($event) . ", event, ui, this); }");
}
}
return $ret;
}