protected function initialize($js, $options)
	{
		$this->options = array_merge(static::$defaultOptions, $options);
		$js            = str_replace("\r\n", "\n", $js);
		$js            = str_replace('/**/', '', $js);
		$this->input   = str_replace("\r", "\n", $js);

		// We add a newline to the end of the script to make it easier to deal
		// with comments at the bottom of the script- this prevents the unclosed
		// comment error that can otherwise occur.
		$this->input .= PHP_EOL;

		// Populate "a" with a new line, "b" with the first character, before
		// entering the loop
		$this->a = "\n";
		$this->b = $this->getReal();
	}
protected function initialize($js, $options)
	{
		$this->options = array_merge(static::$defaultOptions, $options);
		$js            = str_replace("\r\n", "\n", $js);
		$js            = str_replace('/**/', '', $js);
		$this->input   = str_replace("\r", "\n", $js);

		// We add a newline to the end of the script to make it easier to deal
		// with comments at the bottom of the script- this prevents the unclosed
		// comment error that can otherwise occur.
		$this->input .= PHP_EOL;

		// Populate "a" with a new line, "b" with the first character, before
		// entering the loop
		$this->a = "\n";
		$this->b = $this->getReal();
	}
protected function initialize ( $ js , $ options ) { $ this -> options = array_merge ( static :: $ defaultOptions , $ options ) ; $ js = str_replace ( "\r\n" , "\n" , $ js ) ; $ js = str_replace ( '/**/' , '' , $ js ) ; $ this -> input = str_replace ( "\r" , "\n" , $ js ) ; // We add a newline to the end of the script to make it easier to deal // with comments at the bottom of the script- this prevents the unclosed // comment error that can otherwise occur. $ this -> input .= PHP_EOL ; // Populate "a" with a new line, "b" with the first character, before // entering the loop $ this -> a = "\n" ; $ this -> b = $ this -> getReal ( ) ; }
Initializes internal variables, normalizes new lines,

@param string $js      The raw javascript to be minified
@param array  $options Various runtime options in an associative array
Initializes internal variables normalizes new lines