Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Removes the object from the application and disposes the object if it is disposable. This member is static and can be invoked without creating an instance of the class.
Sys.Application.removeComponent(component);
Arguments
- component
The component to remove.
Example
The following example shows a pair of functions that remove a sensitive data component from the application at a fixed time, such as at the end of a business day.
function tick() {
var d = new Date();
while($get('DataBox')) {
window.setInterval(checkTime(d), 100);
}
}
function checkTime(d) {
if (!(8 < d.getHours() < 17)) {
Sys.Application.removeComponent(DataBox);
}
}