public/assets/semantic-ui/api-b91495d5f4243ff171bf15363611a5a75b37e325681a2bab84ef52fd85e47a76.js
Function api
has 669 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.api = $.fn.api = function(parameters) {
var
// use window context if none specified
$allModules = $.isFunction(this)
File api-b91495d5f4243ff171bf15363611a5a75b37e325681a2bab84ef52fd85e47a76.js
has 734 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* # Semantic - API
* http://github.com/semantic-org/semantic-ui/
*
*
Function urlData
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
urlData: function(url, urlData) {
var
requiredVariables,
optionalVariables
;
Function query
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
query: function() {
if(module.is.disabled()) {
module.debug('Element is disabled API request aborted');
return;
Function invoke
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
invoke: function(query, passedArguments, context) {
var
object = instance,
maxDepth,
found,
Function error
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
error: function(xhr, status, httpMessage) {
var
errorMessage = (settings.error[status] !== undefined)
? settings.error[status]
: httpMessage,
Function settings
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
settings: function() {
var
runSettings
;
runSettings = settings.beforeSend.call($module, settings);
Function display
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
display: function() {
var
title = settings.name + ':',
totalTime = 0
;
Avoid deeply nested control flow statements. Open
Open
if(response && response.error !== undefined) {
errorMessage = response.error;
}
Avoid too many return
statements within this function. Open
Open
return settings.on;