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
Pre-loaded plugins are called before other potentially necessary properties are set on the instance (by inheriting applications or even other non-pre-loaded instance plugins).
We might need implement some type of control over when to invoke pre-loaded plugins. Or even just allow them to be loaded, but not invoked, so that an inheriting application can do .run on the instance to call the plugins.
I think we can make .run run the pre-loaded plugins against the current instance if no arguments are passed in. This will require users to do:
varapp=newBase();app.run();
I think this is okay because even with the instance .use method, if you want to run those plugins against something else, you have to manually call .run(something).
For inheriting classes this allows doing:
functionMyApp(){Base.call(this);// add something else herethis.use(something());// run any class prototype pluginsthis.run();}
Pre-loaded plugins are called before other potentially necessary properties are set on the instance (by inheriting applications or even other non-pre-loaded instance plugins).
We might need implement some type of control over when to invoke pre-loaded plugins. Or even just allow them to be loaded, but not invoked, so that an inheriting application can do
.run
on the instance to call the plugins.@doowb thoughts?
The text was updated successfully, but these errors were encountered: