Showing 419 of 859 total issues
Function drag
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drag: function( event ) {
var i = $(this).data("ui-draggable"), o = i.options, scrolled = false;
if(i.scrollParent[0] !== document && i.scrollParent[0].tagName !== "HTML") {
Function _resetButton
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_resetButton: function() {
if ( this.type === "input" ) {
if ( this.options.label ) {
this.element.val( this.options.label );
}
Function _createTitlebar
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createTitlebar: function() {
var uiDialogTitle;
this.uiDialogTitlebar = $("<div>")
.addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix")
Function _toggle
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_toggle: function( data ) {
var toShow = data.newPanel,
toHide = this.prevShow.length ? this.prevShow : data.oldPanel;
// handle activating a panel during the animation for another activation
Function _mouseCapture
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseCapture: function(event, overrideHandle) {
var currentItem = null,
validHandle = false,
that = this;
Function _hideDatepicker
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_hideDatepicker: function(input) {
var showAnim, duration, postProcess, onClose,
inst = this._curInst;
if (!inst || (input && inst !== $.data(input, PROP_NAME))) {
Function _dialogDatepicker
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_dialogDatepicker: function(input, date, onSelect, settings, pos) {
var id, browserWidth, browserHeight, scrollX, scrollY,
inst = this._dialogInst; // internal instance
if (!inst) {
Function cancel
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
cancel: function() {
if(this.dragging) {
this._mouseUp({ target: null });
Function start
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
start: function(options) {
if (History.started) throw new Error("Backbone.history has already been started");
History.started = true;
// Figure out the initial configuration. Do we need an iframe?
Function setupController
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setupController: function(controller){
// Every object will be mapped to contain a value for fkey (the query key)
// and fval (the query value). These values will be sent to the server to
// request the respective search results.
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 _slide
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_slide: function( event, index, newVal ) {
var otherVal,
newValues,
allowed;
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 _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 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 setLibraryRating
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setLibraryRating: function(userRating, media){
if(media.get('libraryEntry') != null){
this.updateLibraryEntry(media, userRating);
return;
Function garlic
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.garlic = function ( option, fn ) {
var options = $.extend(true, {}, $.fn.garlic.defaults, option, this.data() )
, storage = new Storage()
, returnValue = false;
Function top
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
top: function( position, data ) {
var within = data.within,
withinOffset = within.offset.top + within.scrollTop,
outerHeight = within.height,
offsetTop = within.isWindow ? within.scrollTop : within.offset.top,
Function intersect
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.ui.intersect = function(draggable, droppable, toleranceMode) {
if (!droppable.offset) {
return false;
}
Function _keydown
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_keydown: function( event ) {
/*jshint maxcomplexity:15*/
if ( event.altKey || event.ctrlKey ) {
return;
}