Skip to content

Genotype preservation#145

Merged
gliechtenstein merged 7 commits into
developfrom
genotype-preservation
Jul 24, 2017
Merged

Genotype preservation#145
gliechtenstein merged 7 commits into
developfrom
genotype-preservation

Conversation

@gliechtenstein
Copy link
Copy Markdown
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
Copy Markdown

Coverage Status

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

@coveralls
Copy link
Copy Markdown

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

2 participants