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

Refs #2063. Added preparse hook to pipeline.

Spencer Rathbun 13 лет назад
Родитель
Сommit
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.