toolness/webxray — pull request #8 by stenington (2011-11-02 20:10:58+00:00)
Title: tests and fix for ticket #87

tests and fix for ticket #87 - Remixing hackasaurus.lighthouseapp.com crashes the remix dialog

This fixes the specific issue of the remix dialog barfing on hackasaurus.lighthouseapp.com. That was due to the languages list coming through strangely because of interference from prototype.js. The [stackoverflow thread](http://stackoverflow.com/questions/710586/json-stringify-bizarreness) mentions additional `toJSON` methods that we might want to delete in the new `safeJSONStringify` method. It wasn't clear to me though if they exhibit the same buggy behavior as the `Array.prototype.toJSON` so I left the fix narrow for now.