export default class NativeBackgroundColorComponent { constructor(color, el) { this.color = color; this.setContainer(el); this.previousColor = ''; }
setContainer(el) { if (this.el) { this.el.style['background-color'] = this.previousColor; }
this.el = el;
if (el) { this.previousColor = this.el.style['background-color']; this.el.style['background-color'] = this.color; } }
render() {}
resize() {}
destroy() {} }
|