diff --git a/assets/js-routing.js b/assets/js-routing.js index 06fb62c..4b21f0b 100644 --- a/assets/js-routing.js +++ b/assets/js-routing.js @@ -5,9 +5,10 @@ import Router from './router.js'; let routes = []; -let elem = document.getElementById('xact-js-routing-data'); -if(elem) { - routes = JSON.parse(elem.attributes['data-routing-data'].value); +let routesElement = document.getElementById('xact-js-routing-data'); +if(routesElement) { + routes = JSON.parse(routesElement.attributes['data-routing-data'].value); + routesElement.remove(); } let context = { diff --git a/composer.json b/composer.json index e1707d4..d4aef22 100644 --- a/composer.json +++ b/composer.json @@ -3,6 +3,7 @@ "description": "A JS routing bundle for Symfony 3.4 using webpack. Derived from the FOS JSRoutingBundle.", "type": "symfony-bundle", "license": "MIT", + "version": "3.4.6", "authors": [ { "name": "Ian Foulds", @@ -32,6 +33,6 @@ }, "require-dev": { "symfony/debug-pack": "*", - "symfony/test-pack": "*" + "symfony/phpunit-bridge": "^5.1" } } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 60e1bd9..4da2265 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,10 +1,10 @@ + xsi:noNamespaceSchemaLocation="bin/.phpunit/phpunit.xsd" + bootstrap="vendor/autoload.php" + verbose="true" + backupGlobals="false" + colors="true">