Showing 759 of 1,838 total issues
Function cleanData
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
cleanData: function( elems, /* internal */ acceptData ) {
var elem, type, id, data,
i = 0,
internalKey = jQuery.expando,
cache = jQuery.cache,
Function setOffset
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setOffset: function( elem, options, i ) {
var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
position = jQuery.css( elem, "position" ),
curElem = jQuery( elem ),
props = {};
Function style
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
style: function( elem, name, value, extra ) {
// Don't set styles on text and comment nodes
if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
return;
}
Function _handleFileTreeEntry
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_handleFileTreeEntry: function (entry, path) {
var that = this,
dfd = $.Deferred(),
errorHandler = function (e) {
if (e && !e.entry) {
Function _adjustSettings
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_adjustSettings: function (target, inst) {
var now;
var serverOffset = 0;
var serverEntry = null;
for (var i = 0; i < this._serverSyncs.length; i++) {
Function rotate
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
rotate: function (ms, continuing) {
var self = this,
o = this.options;
var rotate = self._rotate || (self._rotate = function (e) {
Function _initSource
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_initSource: function () {
var self = this,
array,
url;
if ($.isArray(this.options.source)) {
Function _slide
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_slide: function (event, index, newVal) {
var otherVal,
newValues,
allowed;
Function open
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
open: function () {
if (this._isOpen) {
return;
}
Function scale
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.scale = function (o) {
return this.queue(function () {
// Create element
Method smallworld_getAvatarLink
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function smallworld_getAvatarLink($userid, $image)
{
$depMsg = __FUNCTION__ . " is deprecated use SwUserHandler::getAvatarLink() instead.";
if (isset($GLOBALS['xoopsLogger'])) {
$GLOBALS['xoopsLogger']->addDeprecated($depMsg);
Method getFileStatus
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getFileStatus($file_path, $original_file_path, $redirectFile)
{
global $pathIcon16;
if (empty($file_path)) {
Consider simplifying this complex logical expression. Open
Open
if ( start && start[ 3 ] !== unit ) {
// Trust units reported by jQuery.css
unit = unit || start[ 3 ];
// Make sure we update the tween properties later on
Consider simplifying this complex logical expression. Open
Open
} else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {
diff = cache[1];
// xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
} else {
Function refreshPositions
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
refreshPositions: function(fast) {
// Determine whether items are being displayed horizontally
this.floating = this.items.length ?
this.options.axis === "x" || this._isFloating( this.items[ 0 ].item ) :
Function _keydown
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_keydown: function( event ) {
if ( event.altKey || event.ctrlKey ) {
return;
}
Function doSubmit
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function doSubmit() {
// make sure form attrs are set
var t = $form.attr('target'), a = $form.attr('action');
// update form attrs in IE friendly way
Function _rerouteClicks
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_rerouteClicks: function () {
var self = this;
// IE displays 'access denied' error when using this method
// other browsers just ignore click()
Function _generatePosition
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_generatePosition: function (event) {
var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.ui.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);
var pageX = event.pageX;
var pageY = event.pageY;
Function _dialogDatepicker
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_dialogDatepicker: function (input, date, onSelect, settings, pos) {
var inst = this._dialogInst; // internal instance
if (!inst) {
this.uuid += 1;
var id = 'dp' + this.uuid;