Line 69: |
Line 69: |
| if ( check( obj, rel_0 ) != undefined ) { | | if ( check( obj, rel_0 ) != undefined ) { |
| var edata = interjson(get_Y_from_X( obj, rel_0 )); | | var edata = interjson(get_Y_from_X( obj, rel_0 )); |
| + | console.log(edata); |
| if ( check( edata, rel_A ) != undefined ) { | | if ( check( edata, rel_A ) != undefined ) { |
| var current = get_Y_from_X( edata, rel_A ); | | var current = get_Y_from_X( edata, rel_A ); |
− | console.log( "parsed object" ) | + | console.log( "parsed object " + current ); |
| // check if we have rel_A relations and iterate through | | // check if we have rel_A relations and iterate through |
| for( var i = 0; i < current.length; i++ ) { | | for( var i = 0; i < current.length; i++ ) { |
− | console.log("dived in"); | + | console.log("dived in " + current[i]); |
| // check if we have controller id constructed from wbEntity | | // check if we have controller id constructed from wbEntity |
| if ( check( current[i], rel_B ) != undefined ) { | | if ( check( current[i], rel_B ) != undefined ) { |
| if ( check( check (current[i], rel_B ), rel_C ) != undefined ) { | | if ( check( check (current[i], rel_B ), rel_C ) != undefined ) { |
| if ( check_Y_in_X( get_Y_from_X( get_Y_from_X( current[i], rel_B ), rel_C ), to_check ) ) { | | if ( check_Y_in_X( get_Y_from_X( get_Y_from_X( current[i], rel_B ), rel_C ), to_check ) ) { |
| + | console.log("mark +"); |
| future = true; | | future = true; |
| }; | | }; |