Browse Source

Move CssRuleView to TS

pull/4695/head
Artur Arseniev 4 years ago
parent
commit
2b274f0f8a
  1. 9
      src/css_composer/view/CssRuleView.ts

9
src/css_composer/view/CssRuleView.js → src/css_composer/view/CssRuleView.ts

@ -1,11 +1,16 @@
import { View } from '../../common'; import { View } from '../../common';
import CssRule from '../model/CssRule';
export default class CssRuleView extends View { export default class CssRuleView extends View<CssRule> {
config: any;
// @ts-ignore
tagName() { tagName() {
return 'style'; return 'style';
} }
initialize(o = {}) { constructor(o: any = {}) {
super(o);
this.config = o.config || {}; this.config = o.config || {};
const { model } = this; const { model } = this;
this.listenTo(model, 'change', this.render); this.listenTo(model, 'change', this.render);
Loading…
Cancel
Save