extension/js/framescript.js
File framescript.js
has 299 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*jslint browser: true, devel: true */
/*globals chrome, addEventHandlerCalledOnce, weightedEditDistance */
// -------------------------- Step-by-step procedure ---------------------------
// 1. Request a random dictionary entry from the background page;
Function addQuestion
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addQuestion(question, callback) {
var isFirstQuestion = !questions.length,
nodes;
// The question must be an object:
Function stealFocus
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function stealFocus(callback) {
// Callback might be an event object:
if (typeof callback !== 'function') {
callback = noop;
}