Skip to content

Commit 8bcc416

Browse files
author
Steven Orvell
committed
Up flush MAX to 100 and add overflow warning.
1 parent 8922323 commit 8bcc416

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/lib/dom-api.html‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -768,9 +768,6 @@
768768

769769
// flush and debounce exposed as statics on Polymer.dom
770770
var flush = Polymer.dom.flush = function() {
771-
// first make any pending CE mutations that might trigger debouncer
772-
// additions go...
773-
flush.flushPolyfills();
774771
// flush debouncers
775772
for (var i=0; i < flush._debouncers.length; i++) {
776773
flush._debouncers[i].complete();
@@ -787,12 +784,15 @@
787784
flush.guard++;
788785
flush();
789786
} else {
787+
if (flush.guard >= flush.MAX) {
788+
console.warn('Polymer.dom.flush aborted. Flush may not be complete.')
789+
}
790790
flush.guard = 0;
791791
}
792792
};
793793

794794
flush.guard = 0;
795-
flush.MAX = 10;
795+
flush.MAX = 100;
796796
flush._needsTakeRecords = !Polymer.Settings.useNativeCustomElements;
797797
// TODO(sorvell): There is currently not a good way
798798
// to process all custom elements mutations under SD polyfill because

0 commit comments

Comments
 (0)