Skip to content

Commit b5e8158

Browse files
Fix mm-repeater index
1 parent 63eacdd commit b5e8158

1 file changed

Lines changed: 16 additions & 14 deletions

File tree

src/mm-repeater/index.html

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,8 @@
22
<html>
33
<head>
44
<script language="javascript" src="../../bower_components/webcomponentsjs/webcomponents-lite.js"></script>
5-
<link rel="import" href="mm-repeater.html" />
6-
<link rel="import" href="../mm-group/mm-group.html" />
7-
<link rel="import" href="../mm-button/mm-button.html" />
8-
<link rel="import" href="../mm-radio/mm-radio.html" />
9-
<link rel="import" href="../mm-input/mm-input.html" />
10-
<link rel="import" href="../mm-dropdown/mm-dropdown.html" />
11-
<link rel="import" href="../mm-list-item/mm-list-item.html" />
5+
<link rel="import" href="../../build/strand.html" />
6+
127
<style type="text/css">
138
body, html {
149
height: 100%;
@@ -91,7 +86,6 @@
9186
</style>
9287
</head>
9388
<body>
94-
9589
<div id='container' class="col c4">
9690
<mm-repeater id="repeater">
9791
<template preserve-content>
@@ -165,14 +159,22 @@
165159
},
166160
errorMessage: "Name is not Ringo!"
167161
}
168-
]
169-
var wd = document.querySelector('#withData');
170-
// wd.set('data', data);
171-
wd.value = data;
162+
];
163+
164+
window.addEventListener('WebComponentsReady', function(e) {
165+
var wd = document.querySelector('#withData');
166+
// wd.set('data', data);
167+
wd.value = data;
172168

173-
document.querySelector('#validateBtn').addEventListener('click', function() {
174-
wd.validate();
169+
document.querySelector('#validateBtn').addEventListener('click', function() {
170+
wd.validate();
171+
});
175172
});
176173
</script>
177174
</body>
178175
</html>
176+
177+
178+
179+
180+

0 commit comments

Comments
 (0)