Skip to content

Commit f13a81f

Browse files
leonardpaulidcodeIO
authored andcommitted
Fix circular dependency of Namespace and Enum (#994)
1 parent c05c58f commit f13a81f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/namespace.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ module.exports = Namespace;
55
var ReflectionObject = require("./object");
66
((Namespace.prototype = Object.create(ReflectionObject.prototype)).constructor = Namespace).className = "Namespace";
77

8-
var Enum = require("./enum"),
9-
Field = require("./field"),
8+
var Field = require("./field"),
109
util = require("./util");
1110

1211
var Type, // cyclic
13-
Service; // "
12+
Service,
13+
Enum;
1414

1515
/**
1616
* Constructs a new namespace instance.
@@ -428,4 +428,5 @@ Namespace.prototype.lookupService = function lookupService(path) {
428428
Namespace._configure = function(Type_, Service_) {
429429
Type = Type_;
430430
Service = Service_;
431+
Enum = require("./enum");
431432
};

0 commit comments

Comments
 (0)