Skip to content

Commit

Permalink
Added meiosis-tracer.
Browse files Browse the repository at this point in the history
  • Loading branch information
foxdonut committed May 6, 2016
1 parent e28fe5d commit 3a52534
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 12 deletions.
20 changes: 11 additions & 9 deletions todomvc/index.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
<!doctype html>
<html lang="en" data-framework="meiosis">
<head>
<meta charset="utf-8">
<title>Meiosis • TodoMVC</title>
<link rel="stylesheet" href="node_modules/todomvc-common/base.css">
<link rel="stylesheet" href="node_modules/todomvc-app-css/index.css">
</head>
<body>
</body>
<script src="node_modules/todomvc-common/base.js"></script>
<head>
<meta charset="utf-8">
<title>Meiosis • TodoMVC</title>
<link rel="stylesheet" href="node_modules/todomvc-common/base.css">
<link rel="stylesheet" href="node_modules/todomvc-app-css/index.css">
</head>
<body>
<div id="app"></div>
</body>
<script src="node_modules/todomvc-common/base.js"></script>
<script src="js/meiosis.min.js"></script>
<script src="js/meiosis-vanillajs.min.js"></script>
<script src="js/meiosis-tracer.min.js"></script> <!-- development only -->
<script src="common/store.js"></script>
<script src="common/actions.js"></script>
<script src="common/model.js"></script>
Expand Down
2 changes: 2 additions & 0 deletions todomvc/js/meiosis-tracer.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions todomvc/js/meiosis-tracer.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions todomvc/vanillajs/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*global meiosis, meiosisVanillaJs, window*/
/*global meiosis, meiosisVanillaJs, meiosisTracer, window*/
(function(ref) {
var Meiosis = meiosis(meiosisVanillaJs.intoSelector("body"));
var Meiosis = meiosis(meiosisVanillaJs.intoId("app"));

var createComponent = Meiosis.createComponent;

Expand All @@ -15,5 +15,7 @@

ref.viewModel(createComponent);

Meiosis.run(Main);
var renderRoot = Meiosis.run(Main);

meiosisTracer(createComponent, renderRoot, "#tracer");
})(window);
2 changes: 2 additions & 0 deletions todomvc/vanillajs/ready.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
actions.deleteTodoId(todoId);
});

document.write("<div id='tracer' style='position: fixed; top: 0px; right: 0px;'></div>");

/*
// select the target node
var target = document.querySelector("body");
Expand Down

0 comments on commit 3a52534

Please sign in to comment.