Просмотр исходного кода

Merge branch 'feature/mongo_2.6.5' into feature/mongo_2.6.5_documentSource

* feature/mongo_2.6.5:
  EAGLESIX-xxxx change the creation of an ObjectExpression from 'new ObjectExpression()' to 'ObjectExpression.create()'

Conflicts:
	lib/pipeline/documentSources/ProjectDocumentSource.js
Chris Sexton 11 лет назад
Родитель
Сommit
454b74ffe5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lib/pipeline/documentSources/ProjectDocumentSource.js

+ 1 - 1
lib/pipeline/documentSources/ProjectDocumentSource.js

@@ -13,7 +13,7 @@ var DocumentSource = require('./DocumentSource');
 var ProjectDocumentSource = module.exports = function ProjectDocumentSource(ctx, exprObj){
 	if (arguments.length > 2) throw new Error("up to two args expected");
 	base.call(this, ctx);
-	this.OE = new ObjectExpression(exprObj);
+	this.OE = ObjectExpression.create();
 	this._raw = undefined;
 	this._variables = undefined;
 }, klass = ProjectDocumentSource, base = require('./DocumentSource'), proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}});