remove line breaks

This commit is contained in:
casperlamboo 2016-05-09 11:40:54 +02:00
parent 0d4f6fbe5b
commit 47e5090444

View File

@ -2,27 +2,23 @@ export default class {
constructor() { constructor() {
this.config = {}; this.config = {};
} }
updateConfig(config) { updateConfig(config) {
for (var i in config) { for (const i in config) {
this.config[i] = config[i]; this.config[i] = config[i];
} }
return this; return this;
} }
startCode() { startCode() {
const { startCode } = this.config; const { startCode } = this.config;
const gcode = this._subsituteVariables(startCode); const gcode = this._subsituteVariables(startCode);
return gcode; return gcode;
} }
endCode() { endCode() {
const { endCode } = this.config; const { endCode } = this.config;
const gcode = this._subsituteVariables(endCode); const gcode = this._subsituteVariables(endCode);
return gcode; return gcode;
} }
_subsituteVariables(gcode) { _subsituteVariables(gcode) {
let { let {
temperature, temperature,