upgrade first session to flightphp
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user