浏览代码

Refs #2063. Added preparse hook to pipeline.

Spencer Rathbun 12 年之前
父节点
当前提交
c7b8db4a61
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      lib/pipeline/Pipeline.js

+ 3 - 0
lib/pipeline/Pipeline.js

@@ -78,6 +78,9 @@ var Pipeline = module.exports = (function(){
 		/* Move filters up where possible.
 		CW TODO -- move filter past projections where possible, and noting corresponding field renaming.
 		*/
+		if (pipelineInstance.preParse instanceof Function) {
+			pipelineInstance.preparse();
+		}
 
 		/*
 		Wherever there is a match immediately following a sort, swap them.