lib/framework/middleware.js
function lookup(obj, type, name) {
  while (obj) {
    if (obj[type] && obj[type].hasOwnProperty(name)) {
      return obj[type][name];
    }
    obj = obj.parent;
  }
}
function lookup(obj, type, name) {
  while (obj) {
    if (obj[type] && obj[type].hasOwnProperty(name)) {
      return obj[type][name];
    }
    obj = obj.parent;
  }
}
function lookup ( obj , type , name ) { while ( obj ) { if ( obj [ type ] && obj [ type ] . hasOwnProperty ( name ) ) { return obj [ type ] [ name ] ; } obj = obj . parent ; } }
Lookup property.
Lookup property .