protected function _generateContent($code) { $file = $this->get('src'); if (isset(self::$_writes[$code->getClass()][$file])) { return; } self::$_writes[$code->getClass()][$file] = 1; if (!$this->has('type')) { $this->set('type', 'js'); } parent::_generateContent($code); }
protected function _generateContent($code) { $this->set('type', $this->has('type') ? $this->get('type') : 'css'); parent::_generateContent($code); }