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

Commit 4386f60

Browse files
committed
Fix codereview benchmark example
1 parent c911c2c commit 4386f60

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

benchmark/codereview-diff.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<script src="../../polymer/polymer.js"></script>
4+
<script src="../../platform-dev/platform.js"></script>
5+
<link rel="import" href="../../polymer-dev/polymer.html">
6+
57
<script src="data.js"></script>
68

79
</head>
@@ -244,6 +246,7 @@
244246
</template>
245247
<script>
246248
(function() {
249+
var div = document.createElement('div');
247250

248251
Polymer('test-me', {
249252
diff: null,
@@ -259,8 +262,13 @@
259262
this.data = window.data;
260263
this.hasBeenActivated = true;
261264
Platform.performMicrotaskCheckpoint();
262-
console.profileEnd('mdv');
263-
console.timeEnd('mdv');
265+
266+
var observer = new MutationObserver(function() {
267+
console.profileEnd('mdv');
268+
console.timeEnd('mdv');
269+
});
270+
observer.observe(div, { attributes: true });
271+
div.setAttribute('foo', 'bar');
264272
}
265273
});
266274

0 commit comments

Comments
 (0)