public function scripts()
	{
		$assets = array();
		
		foreach ($this->assets as $asset) {
			if ('js' !== $asset['ext']) {
				continue;
			}
			
			$assets[] = $this->route ? $asset : $this->process($asset);
		}
		
		if (empty($assets)) {
			return '';
		}
		
		if ($this->route) {
			return $this->prepareForController($assets, 'script');
		}
		
		if ($this->combine) {
			$assets = $this->combine($assets, 'script');
		}
		
		$links = array();
		foreach ($assets as $asset) {
			$url = $this->cdn ? $this->cdn . $asset['url'] : $asset['url'];
			$links[] = HTML::script($url, $asset['attributes']);
		}
		
		return implode('', $links);
	}
public function scripts()
	{
		$assets = array();
		
		foreach ($this->assets as $asset) {
			if ('js' !== $asset['ext']) {
				continue;
			}
			
			$assets[] = $this->route ? $asset : $this->process($asset);
		}
		
		if (empty($assets)) {
			return '';
		}
		
		if ($this->route) {
			return $this->prepareForController($assets, 'script');
		}
		
		if ($this->combine) {
			$assets = $this->combine($assets, 'script');
		}
		
		$links = array();
		foreach ($assets as $asset) {
			$url = $this->cdn ? $this->cdn . $asset['url'] : $asset['url'];
			$links[] = HTML::script($url, $asset['attributes']);
		}
		
		return implode('', $links);
	}
public function scripts ( ) { $ assets = array ( ) ; foreach ( $ this -> assets as $ asset ) { if ( 'js' !== $ asset [ 'ext' ] ) { continue ; } $ assets [ ] = $ this -> route ? $ asset : $ this -> process ( $ asset ) ; } if ( empty ( $ assets ) ) { return '' ; } if ( $ this -> route ) { return $ this -> prepareForController ( $ assets , 'script' ) ; } if ( $ this -> combine ) { $ assets = $ this -> combine ( $ assets , 'script' ) ; } $ links = array ( ) ; foreach ( $ assets as $ asset ) { $ url = $ this -> cdn ? $ this -> cdn . $ asset [ 'url' ] : $ asset [ 'url' ] ; $ links [ ] = HTML :: script ( $ url , $ asset [ 'attributes' ] ) ; } return implode ( '' , $ links ) ; }
Get the HTML links to all of the registered JavaScript assets.

@return string
Get the HTML links to all of the registered JavaScript assets .