public function initOptions()
    {
        $options = array();
        foreach (array('matcher', 'sorter', 'updater', 'highlighter') as $fn) {
            if ($this->$fn !== null) {
                if ($this->$fn instanceof CJavaScriptExpression) {
                    $options[$fn] = $this->$fn;
                } else {
                    $options[$fn] = new CJavaScriptExpression($this->$fn);
                }
            }
        }

        $this->pluginOptions = TbArray::merge(
            array(
                'source' => $this->source,
                'items' => $this->items,
                'minLength' => $this->minLength
            ),
            $options
        );
    }