added missing middleware url from parent for children
This commit is contained in:
parent
fa27ec21c1
commit
fd506d45ee
1 changed files with 1 additions and 0 deletions
|
@ -42,6 +42,7 @@ Entity.prototype.parseJSON = function(json) {
|
|||
|
||||
if (this.children) {
|
||||
for (var i = 0; i < this.children.length; i++) {
|
||||
this.children[i].middleware = this.middleware; // children inherit parent middleware
|
||||
this.children[i] = new Entity(this.children[i]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue