Skip to content

Commit

Permalink
Up flush MAX to 100 and add overflow warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Jul 18, 2015
1 parent 8922323 commit 8bcc416
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/dom-api.html
Original file line number Diff line number Diff line change
Expand Up @@ -768,9 +768,6 @@

// flush and debounce exposed as statics on Polymer.dom
var flush = Polymer.dom.flush = function() {
// first make any pending CE mutations that might trigger debouncer
// additions go...
flush.flushPolyfills();
// flush debouncers
for (var i=0; i < flush._debouncers.length; i++) {
flush._debouncers[i].complete();
Expand All @@ -787,12 +784,15 @@
flush.guard++;
flush();
} else {
if (flush.guard >= flush.MAX) {
console.warn('Polymer.dom.flush aborted. Flush may not be complete.')
}
flush.guard = 0;
}
};

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

0 comments on commit 8bcc416

Please sign in to comment.