diff --git a/src/compiler/compile/nodes/Element.ts b/src/compiler/compile/nodes/Element.ts index 66e963d579..aea4447eaf 100644 --- a/src/compiler/compile/nodes/Element.ts +++ b/src/compiler/compile/nodes/Element.ts @@ -7,6 +7,7 @@ import Transition from './Transition'; import Animation from './Animation'; import Action from './Action'; import Class from './Class'; +import Style from './Style'; import Text from './Text'; import { namespaces } from '../../utils/namespaces'; import map_children from './shared/map_children'; @@ -121,6 +122,7 @@ export default class Element extends Node { actions: Action[] = []; bindings: Binding[] = []; classes: Class[] = []; + styles: Style[] = []; handlers: EventHandler[] = []; lets: Let[] = []; intro?: Transition = null; @@ -203,6 +205,11 @@ export default class Element extends Node { this.classes.push(new Class(component, this, scope, node)); break; + // @paul + case 'Style': + this.styles.push(new Style(component, this, scope, node)); + break; + case 'EventHandler': this.handlers.push(new EventHandler(component, this, scope, node)); break;