0.0.3 • Published 8 years ago

tobjectlist v0.0.3

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

#TObjectList

Small component to handle an Object List.

Objects can be created and destroyed sync and async, and the main event will be triggered after completion.

Basic Usage

class TObj1 extends TObject{
    // Overload Create or Destroy function
    protected Create(fn?: Function) {
        // write your code here
        super.DoCreate(fn);
    }
}

Simulating async function

class TObj2 extends TObject{
    // Overload Create or Destroy function
    protected Create(fn?: Function) {
        setTimeout(() => {
            // write your code here
            super.DoCreate(fn);    
        }, 1500);
    }
}