mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
refactor(swiper): add null check for better testability (#11191)
This commit is contained in:

committed by
Brandy Carney

parent
bb22e4a5f3
commit
8a4a93ee03
@ -897,9 +897,10 @@ function cleanupStyles(s: Slides) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Container
|
// Container
|
||||||
|
if(s.container){
|
||||||
removeClass(s.container, s._classNames);
|
removeClass(s.container, s._classNames);
|
||||||
s.container.removeAttribute('style');
|
s.container.removeAttribute('style');
|
||||||
|
}
|
||||||
// Wrapper
|
// Wrapper
|
||||||
s._wrapper.removeAttribute('style');
|
s._wrapper.removeAttribute('style');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user