Changes

Jump to navigation Jump to search
no edit summary
Line 15: Line 15:     
function isDataController() {
 
function isDataController() {
−
let retVal = false;
+
let foundThatThisIsAnInstanceOfDataController = false;
 
if ( typeof mw.config.values.wbEntity !=  "undefined" ) // if we are on the page of a loaded entity
 
if ( typeof mw.config.values.wbEntity !=  "undefined" ) // if we are on the page of a loaded entity
 
{
 
{
Line 29: Line 29:  
  console.log('found data controller');
 
  console.log('found data controller');
 
  // it's a data controller
 
  // it's a data controller
−
  retVal = true; break;
+
  foundThatThisIsAnInstanceOfDataController = true; break;
 
}
 
}
 
}
 
}
 
}
 
}
 
}
 
}
−
return retVal;
+
return foundThatThisIsAnInstanceOfDataController;
 
}
 
}
  
editors
3,524

edits

Navigation menu