Skip to content

Commit

Permalink
Replace occurences of "elide" with "omit"
Browse files Browse the repository at this point in the history
  • Loading branch information
Sashko Stubailo committed Dec 5, 2014
1 parent 3e6f09f commit 0cdc382
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/minimongo/selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ makeLookupFunction = function (key, options) {
lookupRest = makeLookupFunction(parts.slice(1).join('.'));
}

var elideUnnecessaryFields = function (retVal) {
var omitUnnecessaryFields = function (retVal) {
if (!retVal.dontIterate)
delete retVal.dontIterate;
if (retVal.arrayIndices && !retVal.arrayIndices.length)
Expand Down Expand Up @@ -828,7 +828,7 @@ makeLookupFunction = function (key, options) {
// selectors to iterate over it. eg, {'a.0': 5} does not match {a: [[5]]}.
// So in that case, we mark the return value as "don't iterate".
if (!lookupRest) {
return [elideUnnecessaryFields({
return [omitUnnecessaryFields({
value: firstLevel,
dontIterate: isArray(doc) && isArray(firstLevel),
arrayIndices: arrayIndices})];
Expand All @@ -843,7 +843,7 @@ makeLookupFunction = function (key, options) {
if (!isIndexable(firstLevel)) {
if (isArray(doc))
return [];
return [elideUnnecessaryFields({value: undefined,
return [omitUnnecessaryFields({value: undefined,
arrayIndices: arrayIndices})];
}

Expand Down
2 changes: 1 addition & 1 deletion tools/isopack.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ _.extend(Isopack.prototype, {
// 'extension' is a file extension without the separation dot
// (eg 'js', 'coffee', 'coffee.md')
//
// 'options' can be elided. The only known option is 'isTemplate', which
// 'options' can be omitted. The only known option is 'isTemplate', which
// is a bit of a hack meaning "in an app, these files should be loaded
// before non-templates".
//
Expand Down

0 comments on commit 0cdc382

Please sign in to comment.