You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a class is loaded inline via a call to require, the handling method currently receives the loaded class name when complete. It should also receive the class constructor considering how often this will be useful.
define('class MyClass',{'public construct () -> undefined': function(){varclassName='SomeOtherClass';require(className,'handleClassLoaded');},'private handleClassLoaded (string, function) -> undefined': function(className,classConstructor){// We should have access to the constructor// in order to be able to do the following...varinstance=newclassConstructor();// ...}});
The text was updated successfully, but these errors were encountered:
When a class is loaded inline via a call to
require
, the handling method currently receives the loaded class name when complete. It should also receive the class constructor considering how often this will be useful.The text was updated successfully, but these errors were encountered: