Showing 246 of 804 total issues
Function fixHiddenIFrames
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function fixHiddenIFrames() {
function checkIFrames() {
function checkIFrame(settingId) {
function chkDimension(dimension) {
return '0px' === (settings[settingId] && settings[settingId].iframe.style[dimension]);
Function query
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
query: function(callback) {
callback = $.isFunction(callback)
? callback
: function(){}
;
Function userChoice
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
userChoice: function(values) {
var
$userChoices,
$userChoice,
isUserValue,
Function actionMsg
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function actionMsg() {
if(settings[iframeId] && settings[iframeId].firstRun) firstRun();
switch(messageData.type) {
Function afterFiltered
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
afterFiltered = function() {
if(module.is.multiple()) {
module.filterActive();
}
if(query || (!query && module.get.activeItem().length == 0)) {
Function throttle
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function throttle(func) {
var
context, args, result,
timeout = null,
previous = 0,
Function reset
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
reset: function() {
$field
.each(function () {
var
$field = $(this),
Function id
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
id: function(results) {
module.debug('Injecting unique ids into results');
var
// since results may be object, we must use counters
categoryIndex = 0,
Function isMessageFromIFrame
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function isMessageFromIFrame() {
function checkAllowedOrigin() {
function checkList() {
var
i = 0,
Function exports
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
Function getPackageManager
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getPackageManager: function(directory) {
var
// returns last matching result (avoid sub-module detection)
walk = function(directory) {
var
Function settings
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
settings: function(animation, duration, onComplete) {
// single settings object
if(typeof animation == 'object') {
return $.extend(true, {}, $.fn.transition.settings, animation);
}
Function trigger
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function trigger(calleeMsg, msg, iframe, id, noResponseWarning) {
function postMessageToIFrame() {
var target = settings[id] && settings[id].targetOrigin;
log(id,'[' + calleeMsg + '] Sending msg to iframe['+id+'] ('+msg+') targetOrigin: '+target);
iframe.contentWindow.postMessage( msgId + msg, target );
Function openRightward
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
openRightward: function($subMenu) {
var
$currentMenu = $subMenu || $menu,
canOpenRightward = true,
isOffscreenRight = false,
Function animate
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
animate: function(propertyObject, callback) {
module.verbose('Animating box with properties', propertyObject);
callback = callback || function(event) {
module.verbose('Executing animation callback');
if(event !== undefined) {
Function showResults
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
showResults: function(callback) {
callback = $.isFunction(callback)
? callback
: function(){}
;
Function bowerTask
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
let bowerTask = function() {
console.info('Extending bower.json');
return gulp.src(release.templates.bower)
.pipe(plumber())
.pipe(flatten())
Function settings
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
settings: function() {
var
runSettings
;
runSettings = settings.beforeSend.call(context, settings);
Function animate
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
animate: function(overrideSettings) {
settings = overrideSettings || settings;
if(!module.is.supported()) {
module.error(error.support);
return false;
Function elementCalculations
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
elementCalculations: function() {
var
screen = module.get.screenCalculations(),
element = module.get.elementPosition()
;