public function adjustScriptMapping() { if ($this->isAjaxRequest) { $scriptMap = array_merge($this->clientScript->scriptMap, self::$scriptMapping); $this->clientScript->scriptMap = $scriptMap; } }