EndLife Method
The EndLife method ends an event. It returns nothing. It uses the following syntax:
EndLife()
It includes the following arguments:
CustomPR.prototype.EndLife = function(){
$(object).unbind ("event.CustomPR");
};
where:
object identifies the object where the event runs.
event identifies the name of an event.
It is recommended that you configure Siebel Open UI to end the life of any event that it no longer requires. This configuration makes sure an event handler does not continue to exist even if no object references it. For example, assume you attached a resize event on a window, and then Siebel Open UI finished running this event. The following code ends the resize event on the window object:
CustomPR.prototype.EndLife = function(){
$(window).unbind ("resize.CustomPR");
};
For information about how Siebel Open UI uses EndLife, see the following topics: