Skip to content

Commit

Permalink
BindableSecondPassEvaluator: always imports starling.events.EventDisp…
Browse files Browse the repository at this point in the history
…atcher for [Bindable] metadata because the class may extend a subclass of EventDispathcer, and it wouldn't be imported otherwise (references #32)
  • Loading branch information
joshtynjala committed Apr 19, 2016
1 parent a7a0ec4 commit 009d8db
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ public Value evaluate(Context context, ClassDefinitionNode node)
{
NodeMagic.addImport(context, node, NameFormatter.toDot(standardDefs.INTERFACE_IEVENTDISPATCHER));
}
if(extendsStarlingEventDispatcher)
{
NodeMagic.addImport(context, node, NameFormatter.toDot(standardDefs.CLASS_STARLING_EVENTDISPATCHER));
}

if (bindableInfo.getRequiresStaticEventDispatcher() &&
(!classInfo.definesVariable(STATIC_EVENT_DISPATCHER) &&
Expand Down

0 comments on commit 009d8db

Please sign in to comment.