Let's add BaseClass.as to the scenario with StaticClass extends BaseClass. And
BaseClass looks something like:
public class BaseClass
{
private static var counter:Counter = new Counter();
public function BaseClass()
{
Counter.increment("BaseClass"); // count the number of instances.
}
}
I thought somewhere (like goog.inherits) the prototype is set up. In plain JS,
the code for StaticClass would do something like:
StaticClass = function() {};
StaticClass.prototype = new BaseClass();
StaticClass.prototype.someFunction = function
I think the "new BaseClass()" call will fail because Counter has not been setup.
[ Full content available at: https://github.com/apache/royale-asjs/issues/297 ]
This message was relayed via gitbox.apache.org for [email protected]