浏览代码

EAGLESIX-xxxx change the creation of an ObjectExpression from 'new ObjectExpression()' to 'ObjectExpression.create()'

Tony Ennis 11 年之前
父节点
当前提交
9fd0d93364
共有 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){
 var ProjectDocumentSource = module.exports = function ProjectDocumentSource(ctx){
 	if (arguments.length > 1) throw new Error("up to one arg expected");
 	if (arguments.length > 1) throw new Error("up to one arg expected");
 	base.call(this, ctx);
 	base.call(this, ctx);
-	this.OE = new ObjectExpression();
+	this.OE = ObjectExpression.create();
 	this._raw = undefined;
 	this._raw = undefined;
 }, klass = ProjectDocumentSource, base = require('./DocumentSource'), proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}});
 }, klass = ProjectDocumentSource, base = require('./DocumentSource'), proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}});