Skip to content
This repository has been archived by the owner on Aug 2, 2019. It is now read-only.

Commit

Permalink
Reset the variables for each script
Browse files Browse the repository at this point in the history
  • Loading branch information
RoccoHoward committed Mar 3, 2018
1 parent b35ac52 commit 23a8e69
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Roumen/Asset/Asset.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -709,15 +709,14 @@ public static function jsRaw($separator = "", $name = 'footer')
public static function js($name = 'footer')
{
static::checkEnv();

$type = '';
$defer = '';
$async = '';

if (!empty(static::$js[$name]))
{
foreach(static::$js[$name] as $file)
{
$type = '';
$defer = '';
$async = '';

if (!empty(static::$jsParams[$name][$file]))
{
if (!empty(static::$jsParams[$name][$file]['type'])) $type = static::$jsParams[$name][$file]['type'];
Expand Down

0 comments on commit 23a8e69

Please sign in to comment.