added missing middleware url from parent for children

This commit is contained in:
Steffen Vogel 2011-06-30 22:21:53 +02:00
parent fa27ec21c1
commit fd506d45ee

View file

@ -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]);
}