File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 492
492
- ` touchEventsTarget` defaults back to ` container`
493
493
- Added handling of ` touchcancel` event #3219
494
494
- 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
496
496
- Fixed issue when zoomed image still swiped to another slide on mobiles
497
497
498
498
## [5.0 .1 ](https: // github.com/nolimits4web/swiper/compare/v5.0.0...v5.0.1) - Released on September 17th, 2019
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export interface VirtualMethods {
44
44
removeAllSlides ( ) : void ;
45
45
46
46
/**
47
- * Update virutal slides state
47
+ * Update virtual slides state
48
48
*/
49
49
update ( force : boolean ) : void ;
50
50
}
Original file line number Diff line number Diff line change @@ -15,7 +15,9 @@ function getParams(obj = {}) {
15
15
16
16
const rest = { } ;
17
17
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 ) => {
19
21
if ( typeof obj [ key ] === 'undefined' ) return ;
20
22
if ( allowedParams . indexOf ( key ) >= 0 ) {
21
23
if ( isObject ( obj [ key ] ) ) {
You can’t perform that action at this time.
0 commit comments