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

Added a description over the function.

Scott Munday 11 лет назад
Родитель
Сommit
87b9af2994
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      lib/pipeline/documentSources/UnwindDocumentSource.js

+ 6 - 0
lib/pipeline/documentSources/UnwindDocumentSource.js

@@ -196,6 +196,12 @@ proto.unwindPath = function unwindPath(fieldPath) {
 	this._unwinder = new klass.Unwinder(fieldPath);
 };
 
+/**
+ * Serialize the data associated with the unwind path.
+ *
+ * @param builder
+ * @param explain
+ */
 proto.serialize = function serialize(builder, explain) {
 	if (!this._unwindPath) throw new Error("unwind path does not exist!");
 	builder[this.getSourceName()] = this._unwindPath.getPath(true);