Browse Source

refs #3074: Removed call to process.nextTick

Jared Hall 12 years ago
parent
commit
5cd3ba4b8e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/pipeline/expressions/Expression.js

+ 1 - 1
lib/pipeline/expressions/Expression.js

@@ -156,7 +156,7 @@ var FieldPathExpression = require("./FieldPathExpression"),
  * @static
  * @property opMap
  **/
-process.nextTick(function(){ // Even though `opMap` is deferred, force it to load early rather than later to prevent even *more* potential silliness
+setImmediate(function(){ // Even though `opMap` is deferred, force it to load early rather than later to prevent even *more* potential silliness
 	Object.defineProperty(klass, "opMap", {value:klass.opMap});
 });
 Object.defineProperty(klass, "opMap", {	//NOTE: deferred requires using a getter to allow circular requires (to maintain the ported API)