Destroy instance

this.runtime.DestroyInstance(inst);


Callback
This method will trigger a callback, add the callback by
this.myDestroyCallback = function (inst)
{
....
}
this.runtime.addDestroyCallback( this.myDestroyCallback ) 


Remove the callback by
this.runtime.removeDestroyCallback( this.myDestroyCallback );

No comments:

Post a Comment