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

Commit

Permalink
Fix codereview benchmark example
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelw committed Dec 18, 2013
1 parent c911c2c commit 4386f60
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions benchmark/codereview-diff.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<script src="../../polymer/polymer.js"></script>
<script src="../../platform-dev/platform.js"></script>
<link rel="import" href="../../polymer-dev/polymer.html">

<script src="data.js"></script>

</head>
Expand Down Expand Up @@ -244,6 +246,7 @@
</template>
<script>
(function() {
var div = document.createElement('div');

Polymer('test-me', {
diff: null,
Expand All @@ -259,8 +262,13 @@
this.data = window.data;
this.hasBeenActivated = true;
Platform.performMicrotaskCheckpoint();
console.profileEnd('mdv');
console.timeEnd('mdv');

var observer = new MutationObserver(function() {
console.profileEnd('mdv');
console.timeEnd('mdv');
});
observer.observe(div, { attributes: true });
div.setAttribute('foo', 'bar');
}
});

Expand Down

0 comments on commit 4386f60

Please sign in to comment.