Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Genotype preservation #145

Merged
merged 7 commits into from
Jul 24, 2017
Merged

Genotype preservation #145

merged 7 commits into from
Jul 24, 2017

Conversation

gliechtenstein
Copy link
Contributor

$node.$snapshot() returns its genotype. Used for serializing/deserializing a cell.

Example:

c = {
  $cell: true,
  $type: "div",
  class: "container",
  $init: function() {
    for(var i=0; i<5; i++) {
      this.$components.push({$type: "div", class: "row", $text: i})
    }
  },
  $components: []
}

var gene = document.body.querySelector(".container").$snapshot();
// 'gene' contains the contents of the variable c;

@coveralls
Copy link

Coverage Status

Coverage increased (+0.7%) to 83.707% when pulling 746e39d on genotype-preservation into 01ab402 on develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.8%) to 83.806% when pulling dcbc5ab on genotype-preservation into 01ab402 on develop.

@gliechtenstein gliechtenstein merged commit b67cfa4 into develop Jul 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants