src/libs/Bus.js
function _removeSubscribersPerEvent(oEventsCallbacks, sChannelId, oSubscriber) {
  let nUnsubscribed = 0;
  iterateObject(oEventsCallbacks, function (oItem, sEvent) {
    const aEventsParts = sEvent.split(':');
    let sChannel = sChannelId;
    let sEventType = sEvent;
    if (aEventsParts[0] === 'global') {
      sChannel = aEventsParts[0];
      sEventType = aEventsParts[1];
    }
    nUnsubscribed += _removeSubscribers(oChannels[sChannel][sEventType], oSubscriber);
  });
  return nUnsubscribed;
}
function _removeSubscribersPerEvent(oEventsCallbacks, sChannelId, oSubscriber) {
  let nUnsubscribed = 0;
  iterateObject(oEventsCallbacks, function (oItem, sEvent) {
    const aEventsParts = sEvent.split(':');
    let sChannel = sChannelId;
    let sEventType = sEvent;
    if (aEventsParts[0] === 'global') {
      sChannel = aEventsParts[0];
      sEventType = aEventsParts[1];
    }
    nUnsubscribed += _removeSubscribers(oChannels[sChannel][sEventType], oSubscriber);
  });
  return nUnsubscribed;
}
Loops per all the events to remove subscribers.
@param {Object} oEventsCallbacks
@param {String} sChannelId
@param {Object} oSubscriber
@return {Number}
@private