-
-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
`compactEntityJson` is used to minify the relationship editor state before putting it into sessionStorage during submission. If you create a new entity from an autocomplete search, the returned entity object's constructor will be from a different document (the iframe), so we can't compare it by reference to our `Object`. To determine if something is a plain object, we need another way. The simplest is to check if the constructor function converted to a string matches our `Object` converted to a string.
- Loading branch information
Showing
4 changed files
with
348 additions
and
20 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
Oops, something went wrong.