}
return e.get(xid.substring(1));
}
+ var child = false;
+ if (xid.indexOf('.')) {
+ child = xid.split('.');
+ xid = child.shift();
+ child = child.join('.');
+ }
+
this.items.forEach(function(ch) {
if (ret) {
return;
}
})
if (ret) {
- return ret;
+ return child === false ? ret : ret.get(child);
}
// iterate children.
var _this = this;
ret = ch.get(xid);
})
- return ret;
+ return child === false ? ret : ret.get(child);;
}