Showing 419 of 859 total issues
Function _createRange
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createRange: function() {
var options = this.options,
classes = "";
if ( options.range ) {
Function _updateDatepicker
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_updateDatepicker: function(inst) {
this.maxRows = 4; //Reset the max number of rows being displayed (see #7043)
instActive = inst; // for delegate hover events
inst.dpDiv.empty().append(this._generateHTML(inst));
this._attachHandlers(inst);
Function _setOption
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setOption: function( key, value ) {
if ( key === "culture" || key === "numberFormat" ) {
var prevValue = this._parse( this.element.val() );
this.options[ key ] = value;
this.element.val( this._format( prevValue ) );
Function _refresh
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_refresh: function() {
this._setupDisabled( this.options.disabled );
this._setupEvents( this.options.event );
this._setupHeightStyle( this.options.heightStyle );
Function _destroy
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_destroy: function() {
// Destroy (sub)menus
this.element
.removeAttr( "aria-activedescendant" )
.find( ".ui-menu" ).addBack()
Function _refreshValue
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_refreshValue: function() {
var value = this.options.value,
percentage = this._percentage();
this.valueDiv
Function _initialActive
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_initialActive: function() {
var active = this.options.active,
collapsible = this.options.collapsible,
locationHash = location.hash.substring( 1 );
Function _drop
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_drop: function(event,custom) {
var draggable = custom || $.ui.ddmanager.current,
childrenIntersection = false;
Function updateSectionContents
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateSectionContents: function () {
var agg, filter, sortAsc, sortProperty;
agg = {};
filter = this.get('filter').toLowerCase();
sortProperty = this.get('sortBy');
Function updateSectionContents
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateSectionContents: function () {
var agg, filter, sortAsc, sortProperty;
agg = {};
filter = this.get('filter').toLowerCase();
sortProperty = this.get('sortBy');
Method find_for_facebook_oauth
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def self.find_for_facebook_oauth(auth, signed_in_resource=nil)
# Try to find a user already associated with the Facebook ID.
user = User.where(facebook_id: auth.uid).first
return user if user
Method follow
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def follow
authenticate_user!
user = User.find(params[:user_id])
if user != current_user
Method import!
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def import!
en, jp = fetch_series(all: true), fetch_series(lang: 'ja') || {}
raise MissingDataError.new if en.nil? || en[:episode].blank?
# Save the jp anime title.
Function _createWidget
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createWidget: function( options, element ) {
element = $( element || this.defaultElement || this )[ 0 ];
this.element = $( element );
this.uuid = uuid++;
this.eventNamespace = "." + this.widgetName + this.uuid;
Function murmurhash2_32_gc
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function murmurhash2_32_gc(str, seed) {
var
l = str.length,
h = seed ^ l,
i = 0,
Function compile
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
compile: function(environment, options, context, asObject) {
this.environment = environment;
this.options = options || {};
Handlebars.log(Handlebars.logger.DEBUG, this.environment.disassemble() + "\n\n");
Function replaceStack
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
replaceStack: function(callback) {
var prefix = '',
inline = this.isInline(),
stack;
Function didInsertElement
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
didInsertElement: function() {
return Ember.run.next((function() {
var a, b, x, y,
imageHeight = this.$("#preview").height(),
imageWidth = this.$("#preview").width(),
Function formattedAirDates
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
formattedAirDates: function() {
var format, formattedFinishedAiring, formattedStartedAiring, result;
if (this.get('startedAiring')) {
format = this.get('startedAiringDateKnown') ? "D MMM YYYY" : "MMM YYYY";
Function _create
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create: function() {
var selectees,
that = this;
this.element.addClass("ui-selectable");