Line 11: |
Line 11: |
| baseRelation; | | baseRelation; |
| if ( Object.keys(rel_id_list).length > 0 ) { | | if ( Object.keys(rel_id_list).length > 0 ) { |
− | Object.keys(rel_id_list).forEach(item){ | + | Object.keys(rel_id_list).forEach( function( item ){ |
| temporary_obj = []; | | temporary_obj = []; |
| baseRelation = checkdive( container.main, rel_id_list[item][0] ); | | baseRelation = checkdive( container.main, rel_id_list[item][0] ); |
Line 24: |
Line 24: |
| return_obj.push(rel_id_list[item]); | | return_obj.push(rel_id_list[item]); |
| } | | } |
− | } | + | }); |
| } | | } |
| return return_obj; | | return return_obj; |
Line 56: |
Line 56: |
| function complexcheck(array, read){ | | function complexcheck(array, read){ |
| var ret_obj; | | var ret_obj; |
− | Object.keys(array).forEach(item){ | + | Object.keys(array).forEach( function(item){ |
| rise( ret_obj, checkdive(array[item], read)) ; | | rise( ret_obj, checkdive(array[item], read)) ; |
− | } | + | }); |
| return ret_obj; | | return ret_obj; |
| } | | } |
Line 66: |
Line 66: |
| temp_obj = array; | | temp_obj = array; |
| if ( Object.keys(read).length > 0 ) { | | if ( Object.keys(read).length > 0 ) { |
− | Object.keys(read).forEach(path) { | + | Object.keys(read).forEach( function(path) { |
| temp_obj = checkdive(temp_obj, path); | | temp_obj = checkdive(temp_obj, path); |
− | } | + | }); |
| rise(ret_obj, temp_obj); | | rise(ret_obj, temp_obj); |
| return ret_obj; | | return ret_obj; |
Line 76: |
Line 76: |
| } | | } |
| | | |
− | function rise(array, to_push){ | + | function rise(array, to_push) { |
| if ( to_push != undefined) { | | if ( to_push != undefined) { |
| if ( Object.keys(to_push).length > 0 ){ | | if ( Object.keys(to_push).length > 0 ){ |
− | Object.keys(to_push).forEach(item){ | + | Object.keys(to_push).forEach( function(item){ |
| if ( array != undefined ) { | | if ( array != undefined ) { |
| array.push(to_push[item]); | | array.push(to_push[item]); |
| } | | } |
− | } | + | }); |
| } else { | | } else { |
| array.push(to_push); | | array.push(to_push); |