Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
factored out Node-bind and PolymerExpressions, part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelw committed Aug 10, 2013
1 parent 70b4c70 commit a500c11
Show file tree
Hide file tree
Showing 18 changed files with 47 additions and 343 deletions.
14 changes: 7 additions & 7 deletions benchmark/index.html
Expand Up @@ -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;
Expand All @@ -35,7 +35,7 @@
</style>
</head>
<body>
<h1>MDV Benchmarks</h1>
<h1>Template instantiation benchmarks</h1>

Width: <select id="widthSelect">
<option selected>2
Expand Down Expand Up @@ -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 = [];
Expand Down
4 changes: 2 additions & 2 deletions examples/how_to/array_reduction.html
@@ -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>
Expand Down
2 changes: 1 addition & 1 deletion examples/how_to/bind_to_attributes.html
@@ -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>
Expand Down
2 changes: 1 addition & 1 deletion examples/how_to/bind_to_input_elements.html
@@ -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>
Expand Down
2 changes: 1 addition & 1 deletion examples/how_to/bind_to_text.html
@@ -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>
Expand Down
2 changes: 1 addition & 1 deletion examples/how_to/conditional_attributes.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<script src="../../mdv.js"></script>
<script src="../../load.js"></script>
</head>
<body>
<h1>Conditional Attributes</h1>
Expand Down
2 changes: 1 addition & 1 deletion examples/how_to/conditional_template.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<script src="../../mdv.js"></script>
<script src="../../load.js"></script>
</head>
<body>
<h1>Conditional Template</h1>
Expand Down
6 changes: 3 additions & 3 deletions examples/how_to/custom_syntax.html
@@ -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>
Expand Down
2 changes: 1 addition & 1 deletion examples/how_to/nested_templates.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<script src="../../mdv.js"></script>
<script src="../../load.js"></script>
</head>
<body>
<h1>Nested Template</h1>
Expand Down
2 changes: 1 addition & 1 deletion examples/how_to/recursive_templates.html
@@ -1,4 +1,4 @@
<script src="../../mdv.js"></script>
<script src="../../load.js"></script>

<h1>Recursive Template</h1>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion examples/how_to/template_ref.html
@@ -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>
Expand Down
2 changes: 1 addition & 1 deletion examples/tic-tac-toe.html
Expand Up @@ -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>

Expand Down
2 changes: 1 addition & 1 deletion examples/util/view_controller_test.html
Expand Up @@ -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>
Expand Down
9 changes: 4 additions & 5 deletions load.js
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

(function() {
var thisFile = 'mdv.js';
var thisFile = 'load.js';
var libLocation = '';

function write(inSrc) {
Expand All @@ -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);
})();
2 changes: 1 addition & 1 deletion sample.html
@@ -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>
Expand Down

0 comments on commit a500c11

Please sign in to comment.