public function flushScriptFiles($writer, $control = null) { if (!$this->_page->getIsCallback()) { $this->_page->ensureRenderInForm($control); $this->renderAllPendingScriptFiles($writer); } }