use deconstruction

This commit is contained in:
casperlamboo 2016-05-07 23:45:58 +02:00 committed by Simon Voordouw
parent 9ab23e56f6
commit c284c784fd

View File

@ -151,10 +151,12 @@ export default class {
}
retract () {
const retractionAmount = this.settings.config['retractionAmount'];
const retractionEnabled = this.settings.config['retractionEnabled'];
const retractionMinDistance = this.settings.config['retractionMinDistance'];
const retractionSpeed = this.settings.config['retractionSpeed'];
const {
retractionAmount,
retractionEnabled,
retractionMinDistance,
retractionSpeed
} = this.settings;
if (!this.isRetracted && retractionEnabled) {
this.isRetracted = true;