Skip to content
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #3 from halfpastfouram/dev-master
Browse files Browse the repository at this point in the history
Make sure scripts are loaded in the order they've been provided.
  • Loading branch information
halfpastfouram authored Sep 4, 2018
2 parents e8a029b + 984c284 commit 224d2ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/View/Helper/HeadScript.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ private function generateScripts(array $items, $jsDir, $minifiedFile, $indent)
$scripts[] = $this->itemToString($item, $indent, $escapeStart, $escapeEnd);
}

return $scripts;
// Make sure the scripts are in the correct order.
return array_reverse($scripts, true);
}
}

0 comments on commit 224d2ac

Please sign in to comment.