Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gliechtenstein committed Jul 9, 2017
1 parent 657a754 commit 746e39d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cell.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,14 +528,14 @@
return this.$build(gene, [], null, (options && options.namespace) || null, true);
};
$context.DocumentFragment.prototype.$snapshot = $context.Element.prototype.$snapshot = function() {
var json = JSON.stringify(this.Genotype, function(k,v) {
if (typeof v === 'function' && v.snapshot) { return "(" + v.snapshot.toString() + ")"; }
var json = JSON.stringify(this.Genotype, function(k, v) {
if (typeof v === 'function' && v.snapshot) { return '(' + v.snapshot.toString() + ')'; }
return v;
});
return JSON.parse(json, function(k, v) {
if (typeof v === 'string' && v.indexOf('function') >= 0) { return eval(v); }
return v;
})
});
};
if ($root.NodeList && !$root.NodeList.prototype.forEach) $root.NodeList.prototype.forEach = Array.prototype.forEach; // NodeList.forEach override polyfill
},
Expand Down

0 comments on commit 746e39d

Please sign in to comment.