json-ld/json-ld.org — pull request #105 by jmandel (2012-04-20 22:57:26+00:00)
Title: Fix Playground's "param" behaviors + permalinks

The Playground currently uses a single field to keep track of a user's `context` *or* `frame`. The behavior of this field changes depending on which tab is active, leading to very strange behavior when switching tabs.

This pull request:

* Explicitly separates `context` from `frame` (in UI elements + code)
* Updates permalinks to supply these fields separately while maintaining backwards compatibility
* Adds a `startTab` parameter to the permalink to ensure that sharing a link really does communicate a shared view.

An example of previous strange behavior is: if I define a frame and switch to the compact views, my old frame gets assigned as a context...

```javascript
{
"@context": {
"@context": {
"dc": "http://purl.org/dc/terms/"
},

[remainder snipped]
```