diff --git a/src/ibp/shape/circularLamp.js b/src/ibp/shape/circularLamp.js index ca9f95a35..213992b29 100644 --- a/src/ibp/shape/circularLamp.js +++ b/src/ibp/shape/circularLamp.js @@ -36,13 +36,13 @@ export default class CircularLamp extends Group { } setCircularLampColor(color) { - this.lamp.setStyle('fill', color); + this.lamp.setStyle({fill: color}); } setStatus(model) { if (model.switch === 'on') { - this.setCircularLampColor('fill', '#D8FCF2'); + this.setCircularLampColor('#D8FCF2'); } else { - this.setCircularLampColor('fill', '#332C22'); + this.setCircularLampColor('#332C22'); } } setModel(dx, dy) {