Showing 23 of 42 total issues
Function definition
has 517 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function definition(isObject, isInstanceOf, isTypeOf, generateUuid, iterate, Event, hooksCss, supportMethod) {
var //shortcuts
documentBody = document.body || document.getElementsByTagName('body')[0],
arrayPrototypeConcat = Array.prototype.concat,
arrayPrototypeSlice = Array.prototype.slice,
File element.js
has 523 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @use /demand/validator/isObject
* @use /demand/validator/isInstanceOf
* @use /demand/validator/isTypeOf
* @use /demand/function/uuid
Function definition
has 193 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function definition(isTypeOf, isInstanceOf, DomElement) {
var arrayPrototypeSlice = Array.prototype.slice,
objectDefineProperty = Object.defineProperty;
function resolveElements(elements) {
Function definition
has 168 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function definition(abstractUuid, iterate) {
var objectDefineProperties = Object.defineProperties,
storage = {},
regexMatchLeadingSlash = /^\//,
regexMatchParameter = /[?&]?([^=]+)=([^&]*)/g,
Function definition
has 129 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function definition(Weakmap, Pledge, isObject, iterate, Url, functionMerge) {
var XDR = 'XDomainRequest' in global && global.XDomainRequest || XHR,
storage = new Weakmap();
function flatten(object, prefix, items) {
Function definition
has 120 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function definition(Weakmap, iterate) {
var regexMatchExcludedMethods = /^(_|((get|has|is)([A-Z]|$))|(on|one|off|emit|constructor)$)/,
objectDefineProperty = Object.defineProperty,
objectGetOwnPropertyNames = Object.getOwnPropertyNames,
objectGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor,
Function definition
has 112 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function definition(iterate) {
var objectDefineProperty = Object.defineProperty,
objectDefineProperties = Object.defineProperties,
storage = {
general: {
Function definition
has 98 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function definition(Weakmap, DomElement, functionMerge, functionDebounce) {
var documentElement = document.documentElement,
window = new DomElement(global),
viewport = {},
storage = new Weakmap(),
Function definition
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function definition(Weakmap, Emitter, functionMerge) {
var storage = new Weakmap();
function getStorageProperty(context, property) {
var properties;
Function definition
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function definition(iterate) {
var id = 'polyfill/window/matchmedia',
storage = {},
count = 0, style;
Function definition
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function definition(abstractUuid, Pledge, isInstanceOf, defer, supportMethod) {
var ArrayBuffer = 'ArrayBuffer' in global ? ArrayBuffer : null,
NativeWorker = supportMethod('Worker'),
NativeUrl = supportMethod('URL'),
NativeBlob = supportMethod('Blob'),
Function definition
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function definition(hooksEvent) {
function getTarget(event) {
var target = event.target || event.srcElement || document;
return target.nodeType === 3 ? target.parentNode : target;
Function request
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function request(method) {
var properties = storage.get(this),
isString = typeof properties.data === 'string',
settings = properties.settings,
url = properties.url,
Function definition
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function definition(WeakMap, DomElement) {
var weakmap = new WeakMap(),
supportsPointerEvents = document.documentMode < 11 ? false : 'pointerEvents' in document.createElement('iframe').style,
styles = {
pointerEvents: 'none',
Function definition
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function definition(isObject, functionPropertyUnify, functionStringUcfirst, supportPrefix) {
var prefixes = supportPrefix(),
storage = {};
return function supportProperty(property) {
Function definition
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function definition(getCssProperty) {
var storage = {
general: {
get: function(element, property) {
return getComputedStyle(element, null).getPropertyValue(property[0]);
Function supportProperty
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return function supportProperty(property) {
var element = isObject(arguments[1]) ? arguments[1] : null,
getValue = !!arguments[element ? 2 : 1],
stored = null,
pointer, type, candidates, candidate, uProperty, i = 0;
Function definition
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function definition(unify, ucfirst, prefix) {
var prefixes = prefix(),
styles = document.createElement('div').style,
regexMatchUppercase = /([A-Z])/g,
storage = {};
Function definition
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function definition(isObject, isInstanceOf, isTypeOf, generateUuid, iterate, Event, hooksCss, supportMethod) {
Avoid deeply nested control flow statements. Open
Open
if(listener === fn) {
pointer[event].splice(j, 1);
j--;
}