use deconstion in code

This commit is contained in:
casperlamboo 2016-05-08 10:26:41 +02:00
parent 7517f522d0
commit 5a46e138af

View File

@ -129,9 +129,11 @@ export default class {
} }
unRetract () { unRetract () {
const retractionEnabled = this.settings.config['retractionEnabled']; const {
const retractionMinDistance = this.settings.config['retractionMinDistance']; retractionEnabled,
const retractionSpeed = this.settings.config['retractionSpeed']; retractionMinDistance,
retractionSpeed
} = this.settings.config;
if (this.isRetracted && retractionEnabled) { if (this.isRetracted && retractionEnabled) {
this.isRetracted = false; this.isRetracted = false;