You are here

protected function Minifier::clean in Advanced CSS/JS Aggregation 8.4

Same name and namespace in other branches
  1. 8.2 advagg_js_minify/jshrink.inc \JShrink\Minifier::clean()
  2. 8.3 advagg_js_minify/jshrink.inc \JShrink\Minifier::clean()
  3. 7.2 advagg_js_compress/jshrink.inc \JShrink\Minifier::clean()

Resets attributes that do not need to be stored between requests so that the next request is ready to go. Another reason for this is to make sure the variables are cleared and are not taking up memory.

1 call to Minifier::clean()
Minifier::minifyDirectToOutput in advagg_js_minify/jshrink.inc
Processes a javascript string and outputs only the required characters, stripping out all unneeded characters.

File

advagg_js_minify/jshrink.inc, line 291

Class

Minifier
Minifier

Namespace

JShrink

Code

protected function clean() {
  unset($this->input);
  $this->index = 0;
  $this->a = $this->b = '';
  unset($this->c);
  unset($this->options);
}