Custom Query (7259 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (40 - 42 of 7259)

Ticket Resolution Summary Owner Reporter
#15198 duplicate Fails to guard against zero-length array joemabel joemabel
Description

Apologies for no jFiddle etc. here, this was in a program of 100,000+ lines of JS; I know exactly the fix needed, it's a simple piece of defensive programming.

In _createOverlay: function(), you have code as follows:

    if ( !this._allowInteraction( event ) ) {
        event.preventDefault();
        this._trackingInstances()[ 0 ]._focusTabbable();
    }

There are definitely circumstances where this._trackingInstances() can be an empty array, so this should be something like:

    if ( !this._allowInteraction( event ) ) {
        event.preventDefault();
        if (this._trackingInstances().length) { 
            this._trackingInstances()[ 0 ]._focusTabbable();
        }
    }

It might be better to put the return of this._trackingInstances() in a local variable to avoid calling it twice; I leave that to you. But it is definitely possible for the array returned to be an empty array, in which case this._trackingInstances()[ 0 ]._focusTabbable() will certainly throw an error in the existing code.

#15196 duplicate Migrating to JQuery 3.0 throwing warning in JQuery UI 1.12.1 library suryab21
Description

I am upgrading my JQuery library version to 3.0 using the migration tools provided in upgradation guide and the new JQuery 3.x version showing warning in JQuery UI 1.12.1 library. In the upgradation guide it is mentioned that the JQuery UI v1.12.1 is compatible with JQuery 3.x but still it is showing few error in JQuery UI library. We do not want to change the core library methods. is there any other JQuery 3.x compatible JQuery UI version available or we have to resolve those given issue in JQuery UI core library itself?

console warning for your reference:

JQMIGRATE: Migrate is installed with logging active, version 3.0.0
jquery-migrate-3.0.0.js:62 JQMIGRATE: jQuery.expr[":"] is now jQuery.expr.pseudos
jquery-migrate-3.0.0.js:64 console.trace()migrateWarn @ jquery-migrate-3.0.0.js:64Object.defineProperty.get @ jquery-migrate-3.0.0.js:75(anonymous function) @ jquery-ui.min.js:6(anonymous function) @ jquery-ui.min.js:6(anonymous function) @ jquery-ui.min.js:6
jquery-migrate-3.0.0.js:62 JQMIGRATE: jQuery.expr.filters is now jQuery.expr.pseudos
jquery-migrate-3.0.0.js:64 console.trace()migrateWarn @ jquery-migrate-3.0.0.js:64Object.defineProperty.get @ jquery-migrate-3.0.0.js:75(anonymous function) @ jquery-ui.min.js:6(anonymous function) @ jquery-ui.min.js:7(anonymous function) @ jquery-ui.min.js:6(anonymous function) @ jquery-ui.min.js:6
#15195 fixed Datepicker: pt-PT should have Monday as the first day of the week Scott González Scott González
Note: See TracQuery for help on using queries.