Changes

Jump to navigation Jump to search
no edit summary
Line 21: Line 21:  
if( dive( dive( obj, wbEStruct["instanceOfRelations"])[i] , wbEStruct["IDPropLoc"])[wbEStruct["IDName"]] === controller_item_id ) {
 
if( dive( dive( obj, wbEStruct["instanceOfRelations"])[i] , wbEStruct["IDPropLoc"])[wbEStruct["IDName"]] === controller_item_id ) {
 
// it's a data controller
 
// it's a data controller
 +
console.log('got data controller:');
 +
console.dir(obj);
 +
console.log('diving gives:');
 +
console.dir(dive( obj, wbEStruct["instanceOfRelations"]));
 
var $title2 = $( '.wikibase-title' ),
 
var $title2 = $( '.wikibase-title' ),
 
qId = $title2.find( '.wikibase-title-id' ).text().replace( /[()]/g, '' );
 
qId = $title2.find( '.wikibase-title-id' ).text().replace( /[()]/g, '' );
editors
3,524

edits

Navigation menu