Skip to content

Commit

Permalink
Allow _atEndOfMicrotask to be patchable.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Oct 16, 2015
1 parent 0c21efc commit e2d8446
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/async.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@
}
};

new (window.MutationObserver || JsMutationObserver)
(Polymer.Async._atEndOfMicrotask.bind(Polymer.Async))
.observe(Polymer.Async._twiddle, {characterData: true});
new window.MutationObserver(function() {
Polymer.Async._atEndOfMicrotask();
}).observe(Polymer.Async._twiddle, {characterData: true});

</script>

0 comments on commit e2d8446

Please sign in to comment.