Changes

Jump to navigation Jump to search
m
no edit summary
Line 67: Line 67:  
    console.log( "parsed object" )
 
    console.log( "parsed object" )
 
    // check if we have rel_A relations and iterate through
 
    // check if we have rel_A relations and iterate through
    if ( typeof check( check( obj, wbEStruct[ rel_A ]), [ rel_B ] ) != "undefined" ) {
+
    if ( typeof check( obj, wbEStruct[ rel_A ]) != "undefined" ) {
 +
                if ( typeof check( check( obj, wbEStruct[ rel_A ]), wbEStruct[ rel_B ]) != undefined ) {
 
console.log( "object has " + rel_A + " relations" );
 
console.log( "object has " + rel_A + " relations" );
 
return dive( dive( obj, wbEStruct[ rel_A ]), wbEStruct [ rel_B ]);
 
return dive( dive( obj, wbEStruct[ rel_A ]), wbEStruct [ rel_B ]);
}
+
                }
}
+
            }
 +
        }
 
}
 
}
  
530

edits

Navigation menu