examples/bower_components/polymer/polymer.js
function() {
      // only flush if the page is visibile
      if (document.visibilityState === 'hidden') {
        if (scope.flushPoll) {
          clearInterval(scope.flushPoll);
        }
      } else {
        scope.flushPoll = setInterval(flush, FLUSH_POLL_INTERVAL);
      }
    }
function() {
      // only flush if the page is visibile
      if (document.visibilityState === 'hidden') {
        if (scope.flushPoll) {
          clearInterval(scope.flushPoll);
        }
      } else {
        scope.flushPoll = setInterval(flush, FLUSH_POLL_INTERVAL);
      }
    }
function ( ) { // only flush if the page is visibile if ( document . visibilityState === 'hidden' ) { if ( scope . flushPoll ) { clearInterval ( scope . flushPoll ) ; } } else { scope . flushPoll = setInterval ( flush , FLUSH_POLL_INTERVAL ) ; } }
watch document visiblity to toggle dirty-checking
watch document visiblity to toggle dirty - checking