Showing 5,566 of 7,504 total issues
Function getDropFiles
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getDropFiles: function (evt, callback){
var
files = []
, dataTransfer = _getDataTransfer(evt)
, entrySupport = _isArray(dataTransfer.items) && dataTransfer.items[0] && _getAsEntry(dataTransfer.items[0])
Function MockHttpExpectation
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function MockHttpExpectation(method, url, data, headers) {
this.data = data;
this.headers = headers;
Function ResponsiveNav
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var ResponsiveNav = function (el, options) {
var i;
// Default options
this.options = {
Function _create
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create: function() {
// bail early for unsupported Iris.
if ( ! $.support.iris )
return;
var self = this,
Function ready
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ready: function() {
var control = this;
this.params.removed = this.params.removed || '';
Function refreshKeyboardAccessibility
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
refreshKeyboardAccessibility : function() {
$( '.item-edit' ).off( 'focus' ).on( 'focus', function(){
$(this).off( 'keydown' ).on( 'keydown', function(e){
var arrows,
Function setupPaging
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setupPaging: function() {
var type = 'control-paging',
j = 1,
item,
slide,
Function setup
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setup : function() {
var t = this, a, ed = t.editor, g, columns, link, order, orderby;
if ( ! t.mcemode ) return;
t.restoreSelection();
Function formToArray
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.formToArray = function(semantic) {
var a = [];
if (this.length == 0) return a;
var form = this[0];
Function autosave_parse_response
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function autosave_parse_response(response) {
var res = wpAjax.parseAjaxResponse(response, 'autosave'), message = '', postID, sup, url;
if ( res && res.responses && res.responses.length ) {
message = res.responses[0].data; // The saved message or error.
Function ensure
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ensure: function( id, context ) {
var diff = this.get( id ),
request = this.requests[ id ],
deferred = $.Deferred(),
ids = {},
Function ResponsiveNav
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var ResponsiveNav = function (el, options) {
var i;
// Default options
this.options = {
Function _setupSortable
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setupSortable: function() {
var self = this;
this.isReordering = false;
Function find
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function find(direction) {
el = DOM.select(':input:enabled,*[tabindex]:not(iframe)');
function canSelectRecursive(e) {
return e.nodeName === "BODY" || (e.type != 'hidden' &&
Function selector
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
selector: function(instance) {
var ret = []; // Beginning matches
var partial = []; // Inside matches
var entry = instance.getToken();
var count = 0;
Function init
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init: function() {
inputs.wrap = $('#wp-link-wrap');
inputs.dialog = $( '#wp-link' );
inputs.backdrop = $( '#wp-link-backdrop' );
inputs.submit = $( '#wp-link-submit' );
Function draw
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
draw: function(point) {
var pos = Position.cumulativeOffset(this.element);
if(this.options.ghosting) {
var r = Position.realOffset(this.element);
pos[0] += r[0] - Position.deltaX; pos[1] += r[1] - Position.deltaY;
Function calculateMovingAverage
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
SWFUpload.speed.calculateMovingAverage = function (history) {
var vals = [], size, sum = 0.0, mean = 0.0, varianceTemp = 0.0, variance = 0.0, standardDev = 0.0;
var i;
var mSum = 0, mCount = 0;
Function initSortable
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initSortable: function() {
var collection = this.collection;
if ( ! this.options.sortable || ! $.fn.sortable ) {
return;
Method get_sample_permalink
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_sample_permalink($id, $title = null, $name = null) {
$post = &get_post($id);
if (!$post->ID) {
return array('', '');
}