public function edit(array $args) { if (self::$loaded === false) { self::$loaded = true; $this->appendScript(); } return parent::edit($args); }