Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Splitting with a delimiter would break if the delimiter was included in the params * Joining the array of params also inadvertently cast params to strings * Use JSON stringify/parse to avoid these problems * Catch JSON parse errors and continue, so that the troublesome cookie gets deleted * govuk-template provides a JSON shim for older browsers * Remove old spec helper regarding JSON.parse, all tests pass correctly with the latest PhantomJS it seems.
- Loading branch information
Showing
3 changed files
with
33 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters