Bladeren bron

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

Tony Ennis 11 jaren geleden
bovenliggende
commit
9fd0d93364
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  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){
 	if (arguments.length > 1) throw new Error("up to one arg expected");
 	base.call(this, ctx);
-	this.OE = new ObjectExpression();
+	this.OE = ObjectExpression.create();
 	this._raw = undefined;
 }, klass = ProjectDocumentSource, base = require('./DocumentSource'), proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}});