events = {};

events.beforeFind = function(e) {
  var Class = this;
  var selector = e.data.selector;

  var behaviorData = Class.getBehavior('softremove');

  selector[behaviorData.removedFieldName] = {
    $ne: true
  };
};

events = {};

events.beforeFind = function(e) {
  var Class = this;
  var selector = e.data.selector;

  var classBehavior = Class.getBehavior('softremove');
  var options = classBehavior.options;

  selector[options.removedFieldName] = {
    $ne: true
  };
};

Fix wrong selector in the "beforeFind" event
Fix wrong selector in the "beforeFind" event
