Skip to content

Commit

Permalink
Lint errors. Return consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
Triloworld committed Apr 25, 2018
1 parent 031fe21 commit 4af7839
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/components/core/core-class.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,13 +367,15 @@ class Swiper extends SwiperClass {
swiper.emit('init');
}
destroy(deleteInstance = true, cleanStyles = true) {
let swiper = this;
const { params, $el, $wrapperEl, slides } = swiper;
const swiper = this;
const {
params, $el, $wrapperEl, slides,
} = swiper;

if (typeof swiper.params === 'undefined') {
return ''
};
return null;
}

swiper.emit('beforeDestroy');

// Init Flag
Expand Down Expand Up @@ -420,6 +422,8 @@ class Swiper extends SwiperClass {
Utils.deleteProps(swiper);
}
swiper.destroyed = true;

return null;
}
static extendDefaults(newDefaults) {
Utils.extend(extendedDefaults, newDefaults);
Expand Down

0 comments on commit 4af7839

Please sign in to comment.