-
Notifications
You must be signed in to change notification settings - Fork 0
addPreClass()
addPreClass(), addPreClass() and addSub() adds a new subclass inside of the class itself instead of the prototype so you can use it outside of an instance
const Class = require('aepl');
new Class("Main", class {
constructor() {
this.data = [1, 2, 3];
}
});
Main.addPreSub("Layer0", class { /* class info */ });
Main.addPreClass("Layer1", class { /* class info */ });
Main.addPreSubClass("Layer2", class { /* class info */ });
console.log(Main.Layer0); // AeplPreClassdescription: adds a new subclass inside of the class itself instead of the prototype so you can use it outside of an instance
calls:
- addPreClass()
- addPreSubClass()/addPreSubclass()
- addPreSub()
- setPreClass()
- setPreSubClass()/setPreSubclass()
- setPreSub()
- newPreClass()
- newPreSubClass()/newPreSubclass()
- newPreSub()
- addPC()
- addPSC()
- addPS()
- setPC()
- setPSC()
- setPS()
- newPC()
- newPSC()
- newPS()
If you want to check out the different versions and changes check out the releases
For a look into the development side check out the src folder
init()
from()
inspect()
new()
addClass()
addFunc()
addProp()
addChore()
addAsyncChore()
addPreClass()
addPreFunc()
addPreProp()
addPreChore()
addPreAChore()
setName()
setInspect()
Subclass
Function
Property
Chore
AsyncChore
Preclass
PreFunction
PreProperty
PreChore
PreAsyncChore
compact
multiple-layers
event handler
alternate names
setting and getting inspects