fixed jQuery dprecations

This commit is contained in:
Micha
2025-03-03 12:43:56 +01:00
parent d0d10a7e90
commit 30f1b9a6a9
15 changed files with 38 additions and 38 deletions

@ -2601,7 +2601,7 @@ List - abstract class for inputs that have source option loaded from js array or
onSourceReady: function (success, error) {
//run source if it function
var source;
if ($.isFunction(this.options.source)) {
if (typeof(this.options.source) === 'function') {
source = this.options.source.call(this.options.scope);
this.sourceData = null;
//note: if function returns the same source as URL - sourceData will be taken from cahce and no extra request performed
@ -2718,7 +2718,7 @@ List - abstract class for inputs that have source option loaded from js array or
if(!Array.isArray(this.prependData)) {
//run prepend if it is function (once)
if ($.isFunction(this.options.prepend)) {
if (typeof (this.options.prepend) === 'function') {
this.options.prepend = this.options.prepend.call(this.options.scope);
}
@ -3695,7 +3695,7 @@ $(function(){
if(!options.select2.tags && options.source) {
var source = options.source;
//if source is function, call it (once!)
if ($.isFunction(options.source)) {
if (typeof (options.source) === 'function') {
source = options.source.call(options.scope);
}

File diff suppressed because one or more lines are too long