original_string: public function getJs($position=self::ON_HEAD)
  	{
  		if($this->js===array())
  			return array();
  		$js = isset($this->js[$position])&&!empty($this->js[$position])?$this->js[$position]:array();
  		if($js===array())
  			return $js;
  		$options = $this->options;
  		if($this->isCombineEnabled())
  			$this->combine('js', $js);
  
  		// avoiding duplicate assets
  		$js = array_flip(array_flip($js));
  		array_walk($js, function(&$value) use($options){
  			if(!empty($options['baseUrl'])&&strpos($value,'http://')===false)
  				$value = $options['baseUrl'].$value;
  		});
  		return $js;
  	}
code: public function getJs($position=self::ON_HEAD)
  	{
  		if($this->js===array())
  			return array();
  		$js = isset($this->js[$position])&&!empty($this->js[$position])?$this->js[$position]:array();
  		if($js===array())
  			return $js;
  		$options = $this->options;
  		if($this->isCombineEnabled())
  			$this->combine('js', $js);
  
  		// avoiding duplicate assets
  		$js = array_flip(array_flip($js));
  		array_walk($js, function(&$value) use($options){
  			if(!empty($options['baseUrl'])&&strpos($value,'http://')===false)
  				$value = $options['baseUrl'].$value;
  		});
  		return $js;
  	}
code_tokens: public function getJs ( $ position = self :: ON_HEAD ) { if ( $ this -> js === array ( ) ) return array ( ) ; $ js = isset ( $ this -> js [ $ position ] ) && ! empty ( $ this -> js [ $ position ] ) ? $ this -> js [ $ position ] : array ( ) ; if ( $ js === array ( ) ) return $ js ; $ options = $ this -> options ; if ( $ this -> isCombineEnabled ( ) ) $ this -> combine ( 'js' , $ js ) ; // avoiding duplicate assets $ js = array_flip ( array_flip ( $ js ) ) ; array_walk ( $ js , function ( & $ value ) use ( $ options ) { if ( ! empty ( $ options [ 'baseUrl' ] ) && strpos ( $ value , 'http://' ) === false ) $ value = $ options [ 'baseUrl' ] . $ value ; } ) ; return $ js ; }
docstring: Get all registered javascripts
  @return array $this->js all available javascripts
docstring_tokens: Get all registered javascripts