upgrade first session to flightphp

This commit is contained in:
2026-08-19 17:22:07 +07:00
parent 36395c2b55
commit 27ebdca49b
31 changed files with 1383 additions and 7659 deletions
+4 -4
View File
@@ -284,7 +284,7 @@
};
for (var i = 0; i < images.length; i++) {
if ($.isArray(images[i])) {
if (Array.isArray(images[i])) {
images[i] = widthInsertSort(images[i]);
var chosen = selectBest(containerWidth, containerHeight, images[i]);
chosenImages.push(chosen);
@@ -338,7 +338,7 @@
if (typeof sources === 'undefined') {
return;
}
if (!$.isArray(sources)) {
if (!Array.isArray(sources)) {
sources = [sources];
}
@@ -424,7 +424,7 @@
if (typeof images[i] === 'string') {
processed.push({url: images[i]});
}
else if ($.isArray(images[i])) {
else if (Array.isArray(images[i])) {
processed.push(processImagesArray(images[i]));
}
else {
@@ -556,7 +556,7 @@
* e.g. $.backstretch('/path/to/image.jpg')
* So, we need to turn this back into an array.
*/
this.images = processImagesArray($.isArray(images) ? images : [images]);
this.images = processImagesArray(Array.isArray(images) ? images : [images]);
/**
* Paused-Option