| 
					
				 | 
			
			
				@@ -13,7 +13,7 @@ var ProjectDocumentSource = module.exports = (function(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	var klass = module.exports = ProjectDocumentSource = function ProjectDocumentSource(ctx){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		if(arguments.length > 1) throw new Error("up to one arg expected"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		base.call(this, ctx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		this.EO = new ObjectExpression(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		this.OE = new ObjectExpression(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		this._raw = undefined; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	}, base = require('./DocumentSource'), proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -65,7 +65,7 @@ var ProjectDocumentSource = module.exports = (function(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		if (!inDocument) throw new Error('inDocument must be an object'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		var resultDocument = {}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		this.EO.addToDocument(resultDocument, inDocument, /*root=*/inDocument); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		this.OE.addToDocument(resultDocument, inDocument, /*root=*/inDocument); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		return resultDocument; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -74,7 +74,7 @@ var ProjectDocumentSource = module.exports = (function(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	 * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	 **/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	proto.optimize = function optimize() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		this.EO.optimize(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		this.OE.optimize(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	proto.toJSON = function toJSON(){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -84,13 +84,13 @@ var ProjectDocumentSource = module.exports = (function(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	/** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	 * Places a $project key inside the builder object with value of this.EO 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	 * Places a $project key inside the builder object with value of this.OE 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	 * @method sourceToJson 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	 * @param {builder} An object (was ported from BsonBuilder) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	 * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	 **/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	proto.sourceToJson = function sourceToJson(builder, explain) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		var insides = this.EO.toJSON(true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		var insides = this.OE.toJSON(true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		builder[this.getSourceName()] = insides; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -118,7 +118,7 @@ var ProjectDocumentSource = module.exports = (function(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		if(!exprObj.getFieldCount()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			throw new Error("16403, $projection requires at least one output field"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		project.EO = exprObj; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		project.OE = exprObj; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		return project; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -129,7 +129,7 @@ var ProjectDocumentSource = module.exports = (function(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	 **/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	proto.getDependencies = function getDependencies(deps) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		var path = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		this.EO.addDependencies(deps, path); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		this.OE.addDependencies(deps, path); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		return base.GetDepsReturn.EXHAUSTIVE; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |