code: function(event) {
              var state = self.state();
  
              for ( var i in self._callbacks ) {
                  self._callbacks[i].call(self._doc, event, state);
              }
          }
docs: Listener for `visibilitychange` event.