guardian/frontend — pull request #276 by mattandrews (2012-11-22 12:52:20+00:00)
Title: Toggle fix

This fixes an issue: if you go to the NF and hide a trailblock and look in `localStorage` for `gu.prefs.front-trailblocks-UK`, you should see the ID of the trail. If you then show it again, it should duplicate its ID in `gu.prefs.front-trailblocks-UK` again.

This fix prevents this behaviour.

Problem was that I was passing through a string which always resolved to `true`, foolishly. Now I pass something with proper truthiness.