dist/evrythng.js
function _fillAction(entity, actionObj, actionType) {

    if (!(entity instanceof Scope) && !entity.id) {
      throw new Error('This entity does not have an ID.');
    }

    var ret = actionObj;

    if (Utils.isArray(actionObj)) {

      ret = actionObj.map(function (singleAction) {
        return _fillAction(entity, singleAction, actionType);
      });

    } else {
      ret.type = actionType !== 'all' && actionType ||  actionObj.type || '';
      _addEntityIdentifier(entity, ret);
    }

    return ret;
  }
function _fillAction(entity, actionObj, actionType) {

    if (!(entity instanceof Scope) && !entity.id) {
      throw new Error('This entity does not have an ID.');
    }

    var ret = actionObj;

    if (Utils.isArray(actionObj)) {

      ret = actionObj.map(function (singleAction) {
        return _fillAction(entity, singleAction, actionType);
      });

    } else {
      ret.type = actionType !== 'all' && actionType ||  actionObj.type || '';
      _addEntityIdentifier(entity, ret);
    }

    return ret;
  }
function _fillAction ( entity , actionObj , actionType ) { if ( ! ( entity instanceof Scope ) && ! entity . id ) { throw new Error ( 'This entity does not have an ID.' ) ; } var ret = actionObj ; if ( Utils . isArray ( actionObj ) ) { ret = actionObj . map ( function ( singleAction ) { return _fillAction ( entity , singleAction , actionType ) ; } ) ; } else { ret . type = actionType !== 'all' && actionType || actionObj . type || '' ; _addEntityIdentifier ( entity , ret ) ; } return ret ; }
Set the Entity ID of the entity receiving the action as well as the specified action type in the action data.
Set the Entity ID of the entity receiving the action as well as the specified action type in the action data .