function listenOnRoot(event, callback) {
      if (!this[BVRL] || !(0, _array.isArray)(this[BVRL])) {
        this[BVRL] = [];
      }

      this[BVRL].push({
        event: event,
        callback: callback
      });
      this.$root.$on(event, callback);
      return this;
    }
/**
     * Safely register event listeners on the root Vue node.
     * While Vue automatically removes listeners for individual components,
     * when a component registers a listener on root and is destroyed,
     * this orphans a callback because the node is gone,
     * but the root does not clear the callback.
     *
     * This adds a non-reactive prop to a vm on the fly
     * in order to avoid object observation and its performance costs
     * to something that needs no reactivity.
     * It should be highly unlikely there are any naming collisions.
     * @param {string} event
     * @param {function} callback
     * @chainable
     */
Safely register event listeners on the root Vue node.
While Vue automatically removes listeners for individual components,
when a component registers a listener on root and is destroyed,
this orphans a callback because the node is gone,
but the root does not clear the callback.

This adds a non-reactive prop to a vm on the fly
in order to avoid object observation and its performance costs
to something that needs no reactivity.
It should be highly unlikely there are any naming collisions.
@param {string} event
@param {function} callback
@chainable
Safely register event listeners on the root Vue node . While Vue automatically removes listeners for individual components when a component registers a listener on root and is destroyed this orphans a callback because the node is gone but the root does not clear the callback . This adds a non - reactive prop to a vm on the fly in order to avoid object observation and its performance costs to something that needs no reactivity . It should be highly unlikely there are any naming collisions . @param { string } event @param { function } callback @chainable
function listenOnRoot(event, callback) {
      if (!this[BVRL] || !(0, _array.isArray)(this[BVRL])) {
        this[BVRL] = [];
      }
      this[BVRL].push({
        event: event,
        callback: callback
      });
      this.$root.$on(event, callback);
      return this;
    }
function listenOnRoot ( event , callback ) { if ( ! this [ BVRL ] || ! ( 0 , _array . isArray ) ( this [ BVRL ] ) ) { this [ BVRL ] = [ ] ; } this [ BVRL ] . push ( { event : event , callback : callback } ) ; this . $root . $on ( event , callback ) ; return this ; }
Safely register event listeners on the root Vue node.
Safely register event listeners on the root Vue node .