Permalink
Browse files

factored out Node-bind and PolymerExpressions, part 2

  • Loading branch information...
1 parent 70b4c70 commit a500c118e735769607a2d50e00fa8d9dd31b1f9d @rafaelw rafaelw committed Aug 10, 2013
View
@@ -15,13 +15,13 @@
limitations under the License.
-->
<head>
- <title>MDV Benchmarks</title>
+ <title>Template instantiation benchmarks</title>
<meta charset="utf-8">
- <script src="../mdv.js"></script>
+ <script src="../load.js"></script>
<script src="../node_modules/handlebars/dist/handlebars.js"></script>
- <script src="../third_party/ObserveJS/benchmark/chartjs/Chart.js"></script>
- <script src="../third_party/ObserveJS/benchmark/benchmark.js"></script>
- <script src="mdv_benchmark.js"></script>
+ <script src="../../ObserveJS/benchmark/chartjs/Chart.js"></script>
+ <script src="../../ObserveJS/benchmark/benchmark.js"></script>
+ <script src="benchmark.js"></script>
<style>
* {
font-family: arial, helvetica, sans-serif;
@@ -35,7 +35,7 @@
</style>
</head>
<body>
-<h1>MDV Benchmarks</h1>
+<h1>Template instantiation benchmarks</h1>
Width: <select id="widthSelect">
<option selected>2
@@ -154,7 +154,7 @@ <h3 style="margin-left: 440px">Binding Density</h3>
});
function benchmarkComplete(results) {
- if (Observer._allObserversCount > 2)
+ if (Observer._allObserversCount > 4)
alert('Error. All Observer Count: ' + Observer._allObserversCount);
datasets = [];
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html>
<head>
- <script src="../../mdv.js"></script>
- <script src="../../third_party/ObserveJS/util/array_reduction.js"></script>
+ <script src="../../load.js"></script>
+ <script src="../../../ObserveJS/util/array_reduction.js"></script>
</head>
<body>
<h1>Reduction</h1>
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <script src="../../mdv.js"></script>
+ <script src="../../load.js"></script>
</head>
<body>
<h1>Bind To Attributes</h1>
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <script src="../../mdv.js"></script>
+ <script src="../../load.js"></script>
</head>
<body>
<h1>Bind to Input Elements</h1>
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <script src="../../mdv.js"></script>
+ <script src="../../load.js"></script>
</head>
<body>
<h1>Bind To Text</h1>
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <script src="../../mdv.js"></script>
+ <script src="../../load.js"></script>
</head>
<body>
<h1>Conditional Attributes</h1>
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <script src="../../mdv.js"></script>
+ <script src="../../load.js"></script>
</head>
<body>
<h1>Conditional Template</h1>
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<html>
<head>
- <script src="../../mdv.js"></script>
+ <script src="../../load.js"></script>
</head>
<body>
- <h1>Custom Syntax</h1>
+ <h1>Binding Delegate API</h1>
<ul>
- <template id="example" bind syntax="MyCustom">
+ <template id="example" bind>
<span>Amount: <input value="{{ value }}">, Twice Amount: {{ 2x: value }}</span>
</template>
</ul>
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <script src="../../mdv.js"></script>
+ <script src="../../load.js"></script>
</head>
<body>
<h1>Nested Template</h1>
@@ -1,4 +1,4 @@
-<script src="../../mdv.js"></script>
+<script src="../../load.js"></script>
<h1>Recursive Template</h1>
<ul>
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <script src="../../mdv.js"></script>
+ <script src="../../load.js"></script>
</head>
<body>
<h1>Re-using templates</h1>
@@ -17,7 +17,7 @@
-->
<head>
<title>Tic Tac Toe Sample</title>
-<script src="../mdv.js"></script>
+<script src="../load.js"></script>
<script src="util/view_controller.js"></script>
<style>
@@ -26,7 +26,7 @@
var forceCollectObservers = true;
</script>
-<script src="../../mdv.js"></script>
+<script src="../../load.js"></script>
<script src="view_controller.js"></script>
</head>
<body>
View
@@ -13,7 +13,7 @@
// limitations under the License.
(function() {
- var thisFile = 'mdv.js';
+ var thisFile = 'load.js';
var libLocation = '';
function write(inSrc) {
@@ -28,9 +28,8 @@
libLocation + 'src/template_element.css">');
[
- 'third_party/ObserveJS/src/observe.js',
- 'src/template_element.js',
- 'third_party/esprima/esprima.js',
- 'util/expression_syntax.js'
+ '../ObserveJS/src/observe.js',
+ '../Node-bind/src/node-bind.js',
+ 'src/template-instantiation.js'
].forEach(write);
})();
View
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <script src="mdv.js"></script>
+ <script src="load.js"></script>
</head>
<body>
<h1>Model-driven Views</h1>
Oops, something went wrong.

0 comments on commit a500c11

Please sign in to comment.