Line 1: |
Line 1: |
| + | // License: GPL |
| + | // |
| + | Console.log('Wbprocessor loading'); |
| + | |
| function wbContainer( universe, location ) { | | function wbContainer( universe, location ) { |
− | var obj_0 = {};
| |
| | | |
− | obj_0.main = interjson( get_Y_from_X( universe, location )); | + | this.main = interjson( get_Y_from_X( universe, location )); |
| | | |
− | obj_0.checkentity = function ( rel_id_list, inner_location, property ) { | + | this.checkentity = function ( rel_id_list, inner_location, property ) { |
| var return_obj = {}; | | var return_obj = {}; |
| Object.keys(rel_id_list).forEach( function(item){ | | Object.keys(rel_id_list).forEach( function(item){ |
− | if ( check( main, rel_id_list[item][0] ) != undefined ) { | + | if ( check( this.main, rel_id_list[item][0] ) != undefined ) { |
− | var primary_part = get_Y_from_X( main, rel_id_list[item][0] ); | + | var primary_part = get_Y_from_X( this.main, rel_id_list[item][0] ); |
| if ( check_Y_in_X ( primary_part, (property) ? inner_location + '.' + property : inner_location ) ) { | | if ( check_Y_in_X ( primary_part, (property) ? inner_location + '.' + property : inner_location ) ) { |
| return_obj[item] = rel_id_list[item]; | | return_obj[item] = rel_id_list[item]; |
Line 78: |
Line 81: |
| return false; | | return false; |
| } | | } |
− | return obj_0;
| |
| } | | } |