*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Ease\Html;
/**
* @author VÃtÄzslav DvoÅák , Jana Viktorie Borbina
*
* page javascript fragment.
*/
class JavaScript extends ScriptTag
{
/**
* page javascript fragment.
*
* @param string $content script content
*/
public function __construct($content, array $properties = [])
{
if (\array_key_exists('type', $properties) === false) {
$properties['type'] = 'text/javascript';
}
parent::__construct($content, $properties);
}
}