Showing 840 of 1,637 total issues
Function partition
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.layout.partition = function() {
var hierarchy = d3.layout.hierarchy(), size = [ 1, 1 ];
function position(node, x, dx, dy) {
var children = node.children;
node.x = x;
Function dispatch
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
dispatch: function( event ) {
// Make a writable jQuery.Event from the native event object
event = jQuery.event.fix( event );
Function access
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
access: function( elems, fn, key, value, chainable, emptyGet, raw ) {
var i = 0,
length = elems.length,
bulk = key == null;
Function clone
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
clone: function( elem, dataAndEvents, deepDataAndEvents ) {
var destElements, node, clone, i, srcElements,
inPage = jQuery.contains( elem.ownerDocument, elem );
if ( jQuery.support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) {
Function ceil
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.ceil = function(time, unit) {
var date, floor, year;
if (unit.name == 'day') {
Function start
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
start: function() {
var element, p, co, ch, cw, width, height,
that = $(this).data("ui-resizable"),
o = that.options,
el = that.element,
Function simpledraw
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.simpledraw = function (width, height, useExisting, interact) {
var target, mhandler;
if (useExisting && (target = this.data('_jqs_vcanvas'))) {
return target;
}
Function fnAddData
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.fnAddData = function( mData, bRedraw )
{
if ( mData.length === 0 )
{
return [];
Function _fnUpdateInfo
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnUpdateInfo ( oSettings )
{
/* Show information about the table */
if ( !oSettings.oFeatures.bInfo || oSettings.aanFeatures.i.length === 0 )
{
Function _eventHandler
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_eventHandler: function( event ) {
var options = this.options,
active = this.active,
anchor = $( event.currentTarget ),
tab = anchor.closest( "li" ),
Function _slide
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_slide: function( event, index, newVal ) {
var otherVal,
newValues,
allowed;
Function _position
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_position: function() {
var position = this.options.position,
myAt = [],
offset = [ 0, 0 ],
isVisible;
Function fnDeleteRow
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.fnDeleteRow = function( mTarget, fnCallBack, bRedraw )
{
/* Find settings from table node */
var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
var i, iLen, iAODataIndex;
Function _create
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create: function() {
var that = this,
options = this.options;
this.running = false;
Function solveCurveX
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function solveCurveX(x, epsilon) {
var t0, t1, t2, x2, d2, i;
for(t2 = x, i = 0; i < 8; i++) {
x2 = sampleCurveX(t2) - x;
if (abs(x2) < epsilon) {
Function catmullRom2bezier
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function catmullRom2bezier(crp, z) {
var d = [];
for (var i = 0, iLen = crp.length; iLen - 2 * !z > i; i += 2) {
var p = [
{x: +crp[i - 2], y: +crp[i - 1]},
Function tuneText
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
tuneText = function (el, params) {
if (el.type != "text" || !(params[has]("text") || params[has]("font") || params[has]("font-size") || params[has]("x") || params[has]("y"))) {
return;
}
var a = el.attrs,
Function d3_rgb_parse
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_rgb_parse(format, rgb, hsl) {
var r = 0, g = 0, b = 0, m1, m2, name;
m1 = /([a-z]+)\((.*)\)/i.exec(format);
if (m1) {
m2 = m1[2].split(",");
Function d3_geom_voronoiRemoveBeach
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_geom_voronoiRemoveBeach(beach) {
var circle = beach.circle, x = circle.x, y = circle.cy, vertex = {
x: x,
y: y
}, previous = beach.P, next = beach.N, disappearing = [ beach ];
Function calcPoints
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Line.prototype.calcPoints = function() {
var row, y, _i, _len, _ref, _results;
_ref = this.data;
_results = [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {