/**
* Updates the options of the jQueryUI widget.
* @param array list of widget options to change.
*/
protected function updateJuiOptions($options)
{
foreach ($options as $key => $value) {
$options[$key] = $key . ': ' . (is_string($value) ? "'{$value}'" : TPropertyValue::ensureString($value));
}
$code = "jQuery('#{$this->_control->getWidgetID()}').{$this->_control->getWidget()}('option', { " . implode(', ', $options) . " });";
$this->_control->getPage()->getClientScript()->registerEndScript(sprintf('%08X', crc32($code)), $code);
}