flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harbs <harbs.li...@gmail.com>
Subject [FlexJS] internal classes
Date Fri, 21 Apr 2017 21:04:03 GMT
Another dependency problem:

org.apache.flex.svg.GraphicContainer contains an internal class called GraphicGroup which
extends ContainerBase

GraphicContainer has the following requires:

goog.provide('org.apache.flex.svg.GraphicContainer');

goog.require('org.apache.flex.core.UIBase');
goog.require('org.apache.flex.core.IContainer');
goog.require('org.apache.flex.core.ITransformHost');

It also generates the following which contains a reference to ContainerBase:
/* FlexJS Dependency List: org.apache.flex.core.ContainerBase,org.apache.flex.utils.Language*/

The problem with this is that org.apache.flex.core.ContainerBase is not guaranteed to load
before org.apache.flex.svg.GraphicContainer. If it does not load first, there will be a runtime
error on goog.inherits(org.apache.flex.svg.GraphicContainer.GraphicGroup, org.apache.flex.core.ContainerBase);

(I was just bitten by this problem.)

Thanks,
Harbs
Mime
View raw message