Showing 135 of 334 total issues
Function resize
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
resize: function () {
var that = $(this).data("ui-resizable"),
o = that.options,
cs = that.size,
os = that.originalSize,
Function scale
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.effect.scale = function (o, done) {
// Create element
var el = $(this),
options = $.extend(true, {}, o),
Function renderSlotSelection
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function renderSlotSelection(startDate, endDate) {
var helperOption = opt('selectHelper');
coordinateGrid.build();
if (helperOption) {
var col = dateToCell(startDate).col;
Function _generatePosition
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_generatePosition: function (event) {
var top, left,
o = this.options,
pageX = event.pageX,
Function _setContainment
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setContainment: function () {
var over, c, ce,
o = this.options;
Function _mouseStart
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseStart: function (event) {
var o = this.options;
//Create and append the visible helper
Function resize
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
resize: function (event) {
var woset, hoset, isParent, isOffsetRelative,
that = $(this).data("ui-resizable"),
o = that.options,
co = that.containerOffset, cp = that.position,
Function _mouseDrag
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseDrag: function (event) {
//Increase performance, avoid regex
var data,
el = this.helper, props = {},
Consider simplifying this complex logical expression. Open
Open
if (this.floating && horizontalDirection) {
return ((horizontalDirection === "right" && isOverRightHalf) || (horizontalDirection === "left" && !isOverRightHalf));
} else {
return verticalDirection && ((verticalDirection === "down" && isOverBottomHalf) || (verticalDirection === "up" && !isOverBottomHalf));
}
Consider simplifying this complex logical expression. Open
Open
if (!(/^(document|window|parent)$/).test(o.containment)) {
ce = $(o.containment)[0];
co = $(o.containment).offset();
over = ($(ce).css("overflow") !== "hidden");
Function _createPlaceholder
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createPlaceholder: function (that) {
that = that || this;
var className,
o = that.options;
Function start
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
start: function (ev, ui) {
trigger('eventDragStart', eventElement, event, ev, ui);
hideEvents(event, eventElement);
origWidth = eventElement.width();
hoverListener.start(function (cell, origCell) {
Function hook
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
color.hook = function (hook) {
var hooks = hook.split(" ");
each(hooks, function (i, hook) {
jQuery.cssHooks[hook] = {
set: function (elem, value) {
Function buildCellHTML
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildCellHTML(date) {
var contentClass = tm + "-widget-content";
var month = t.start.getMonth();
var today = clearTime(new Date());
var html = '';
Function fullCalendar
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.fullCalendar = function (options) {
// method calling
if (typeof options == 'string') {
Function _mouseDown
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseDown: function (event) {
// don't let more than one widget handle mouseStart
if (mouseHandled) {
return;
}
Function bridge
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.widget.bridge = function (name, object) {
var fullName = object.prototype.widgetFullName || name;
$.fn[name] = function (options) {
var isMethodCall = typeof options === "string",
args = slice.call(arguments, 1),
Function _on
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_on: function (suppressDisabledCheck, element, handlers) {
var delegateElement,
instance = this;
// no suppressDisabledCheck flag, shuffle arguments
Function _respectSize
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_respectSize: function (data) {
var o = this._vBoundaries,
a = this.axis,
ismaxw = isNumber(data.width) && o.maxWidth && (o.maxWidth < data.width), ismaxh = isNumber(data.height) && o.maxHeight && (o.maxHeight < data.height),
Function buildDayTableHeadHTML
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildDayTableHeadHTML() {
var headerClass = tm + "-widget-header";
var date;
var html = '';
var weekText;