rails/app/assets/javascripts/modulejs.js
Function create
has 98 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var create = function create() {
// Module definitions.
var definitions = {};
// Module instances.
Function resolve
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var resolve = function resolve(id, mixed, stack) {
// check arguments
assert(isString(id), 'id must be string: ' + id);
var onlyDepIds = mixed === true;
var resolvedInstances = (onlyDepIds ? undefined : mixed) || instances;