digitalbazaar/jsonld.js — pull request #6 by jmandel (2011-11-28 23:21:24+00:00)
Title: Bug fix when auto-embeds are replaced with non-auto embeds.

The circumstances causing this bug are demonstrated in:
JSON-LD/frame 0014/Replace existing embed on 2nd pass.

*The following graph structure caused trouble **only** when the framing algorithm processes `` before node ``. (That is, rename `` to `` so it appears later in the normalized graph, and there's no problem.)*

_:c14n0
"This value should not disappear.".

;
.

;
_:c14n0.

The problem occurs because, when a preexisting auto-embed is de-referenced, any embeds that relied on it are left stranded (marked in the `embeds` hash as already taken care of, but divorced from the parent that had embedded them).