Browse Source

Refs #5300: Fix 's createFromJson

Chris Sexton 11 years ago
parent
commit
7c761d5cf1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/pipeline/documentSources/GeoNearDocumentSource.js

+ 1 - 1
lib/pipeline/documentSources/GeoNearDocumentSource.js

@@ -82,7 +82,7 @@ proto.serialize = function(explain) {
 
 klass.createFromJson = function(jsonElement, ctx) {
 	var out = new GeoNearDocumentSource(ctx);
-	out.parseOptions(JSON.parse(jsonElement));
+	out.parseOptions(jsonElement);
 	return out;
 };