note references to actions/animations/transitions (#2133)

pull/2136/head
Conduitry 6 years ago
parent e1ff7c7b2a
commit 7b6de7e230

@ -14,6 +14,7 @@ export default class Action extends Node {
component.warn_if_undefined(info, scope); component.warn_if_undefined(info, scope);
this.name = info.name; this.name = info.name;
component.qualify(info.name);
this.expression = info.expression this.expression = info.expression
? new Expression(component, this, scope, info.expression) ? new Expression(component, this, scope, info.expression)

@ -13,6 +13,7 @@ export default class Animation extends Node {
component.warn_if_undefined(info, scope); component.warn_if_undefined(info, scope);
this.name = info.name; this.name = info.name;
component.qualify(info.name);
if (parent.animation) { if (parent.animation) {
component.error(this, { component.error(this, {

@ -15,6 +15,8 @@ export default class Transition extends Node {
component.warn_if_undefined(info, scope); component.warn_if_undefined(info, scope);
this.name = info.name; this.name = info.name;
component.qualify(info.name);
this.directive = info.intro && info.outro ? 'transition' : info.intro ? 'in' : 'out'; this.directive = info.intro && info.outro ? 'transition' : info.intro ? 'in' : 'out';
this.is_local = info.modifiers.includes('local'); this.is_local = info.modifiers.includes('local');

Loading…
Cancel
Save