B2G/gecko/services/aitc/modules/main.js
// This is called iff the user is currently looking the dashboard.
This is called iff the user is currently looking the dashboard.
This is called iff the user is currently looking the dashboard .
function dashboardLoaded(browser) {
      let win = browser.contentWindow;
      self._log.info("Dashboard was accessed " + win);
      if (win.document && win.document.readyState == "complete") {
        self._manager.userActive(win);
        return;
      }
      browser.contentWindow.addEventListener(
        "DOMContentLoaded",
        function _contentLoaded(event) {
          self._manager.userActive(win);
        },
        false
      );
    }
function dashboardLoaded ( browser ) { let win = browser . contentWindow ; self . _log . info ( "Dashboard was accessed " + win ) ; if ( win . document && win . document . readyState == "complete" ) { self . _manager . userActive ( win ) ; return ; } browser . contentWindow . addEventListener ( "DOMContentLoaded" , function _contentLoaded ( event ) { self . _manager . userActive ( win ) ; } , false ) ; }
This is called iff the user is currently looking the dashboard.
This is called iff the user is currently looking the dashboard .
// If page is ready to go, fire immediately. // Only fire event after the page fully loads.