From 89a767c1f97bff9d96f063f4ecfee79bc2f87ec1 Mon Sep 17 00:00:00 2001 From: Steven Orvell Date: Wed, 15 Jul 2015 16:35:41 -0700 Subject: [PATCH] Fixes #2039: Polymer.dom.flush now triggers Custom Elements polyfill mutations and includes an api (`Polymer.dom.addDebouncer(debouncer)`) for adding debouncers which should run at flush time. Template rendering debouncers are placed in the flush list. --- src/lib/dom-api.html | 61 +++++++++++++++++++++++++------ src/lib/template/templatizer.html | 42 +++++---------------- 2 files changed, 60 insertions(+), 43 deletions(-) diff --git a/src/lib/dom-api.html b/src/lib/dom-api.html index 1f717d33b8..ecf355eef2 100644 --- a/src/lib/dom-api.html +++ b/src/lib/dom-api.html @@ -24,8 +24,6 @@ var nativeCloneNode = Element.prototype.cloneNode; var nativeImportNode = Document.prototype.importNode; - var dirtyRoots = []; - var DomApi = function(node) { this.node = node; if (this.patch) { @@ -36,11 +34,7 @@ DomApi.prototype = { flush: function() { - for (var i=0, host; i