js/select-advanced.js
Function transform
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function transform() {
var $this = $( this ),
options = $this.data( 'options' );
$this.removeClass( 'select2-hidden-accessible' ).removeAttr( 'data-select2-id' );
Function transport
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
options.ajax.transport = function ( params, success, failure ) {
if ( params.data._type === 'query' ) {
delete params.data.page;
}