Skip to content

Commit e67a336

Browse files
committed
Merge branch 'master' of https://github.com/nolimits4web/swiper
2 parents 9e50b35 + 0edc3c1 commit e67a336

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@
492492
- `touchEventsTarget` defaults back to `container`
493493
- Added handling of `touchcancel` event #3219
494494
- Fixed issue with wrong order calculation in `slidesPerColumnFill: 'row'` mode
495-
- Fixed issue with slides missplacing when prepending slides in virutal mode
495+
- Fixed issue with slides missplacing when prepending slides in virtual mode
496496
- Fixed issue when zoomed image still swiped to another slide on mobiles
497497

498498
## [5.0.1](https://github.com/nolimits4web/swiper/compare/v5.0.0...v5.0.1) - Released on September 17th, 2019

src/types/components/virtual.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export interface VirtualMethods {
4444
removeAllSlides(): void;
4545

4646
/**
47-
* Update virutal slides state
47+
* Update virtual slides state
4848
*/
4949
update(force: boolean): void;
5050
}

src/vue/get-params.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ function getParams(obj = {}) {
1515

1616
const rest = {};
1717
const allowedParams = paramsList.map((key) => key.replace(/_/, ''));
18-
Object.keys(obj).forEach((key) => {
18+
// Prevent empty Object.keys(obj) array on ios.
19+
const plainObj = Object.assign({}, obj);
20+
Object.keys(plainObj).forEach((key) => {
1921
if (typeof obj[key] === 'undefined') return;
2022
if (allowedParams.indexOf(key) >= 0) {
2123
if (isObject(obj[key])) {

0 commit comments

Comments
 (0)