/** * This is where all the javascripts would be attached on the page. * * @since 5.0 * @access public * @param string * @return */ public function attach($section = 'site') { $this->section = $section; if (isset(self::$attached[$section])) { return; } parent::attach(); self::$attached = true; }