try {
window.bill_event_listeners.removeAll();
g.bill_list.cleanup();
+ g.bill_list.clear();
} catch(E) {
var err_msg = $("commonStrings").getFormattedString('common.exception', ['patron/bill2.xul', E]);
try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
function my_cleanup() {
try {
g.bill_list.cleanup();
+ g.bill_list.clear();
g.payment_list.cleanup();
+ g.payment_list.clear();
window.bill_details_event_listeners.removeAll();
} catch(E) {
try { g.error.standard_unexpected_error_alert($("patronStrings").getString('staff.patron.bill_details.my_cleanup.error'),E); } catch(F) { alert(E); }
function my_cleanup() {
try {
g.bill_list.cleanup();
+ g.bill_list.clear();
g.payments_list.cleanup();
+ g.payments_list.clear();
window.bill_history_event_listeners.removeAll();
} catch(E) {
var err_msg = $("commonStrings").getFormattedString('common.exception', ['patron/bill_history.xul', E]);
function my_cleanup() {
try {
g.list.cleanup();
+ g.list.clear();
} catch(E) {
try { g.error.standard_unexpected_error_alert('/xul/server/patron/hold_notices.xul',E); } catch(E) { alert('FIXME: ' + js2JSON(E)); }
}
var obj = this;
obj.controller.cleanup();
obj.list.cleanup();
+ obj.list.clear();
obj.event_listeners.removeAll();
},
function my_cleanup() {
try {
list.cleanup();
+ list.clear();
} catch(E) {
var err_msg = $("commonStrings").getFormattedString('common.exception', ['patron/info_group.xul', E]);
try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
'cleanup' : function() {
var obj = this;
obj.list.cleanup();
+ obj.list.clear();
obj.list2.cleanup();
+ obj.list2.clear();
},
'show_noncats' : function() {
var obj = this;
obj.controller.cleanup();
obj.list.cleanup();
+ obj.list.clear();
},
'search' : function(query) {
function staged_cleanup() {
try {
list.cleanup();
+ list.clear();
window.staged_event_listeners.removeAll();
} catch(E) {
var err_prefix = 'staged.js -> staged_cleanup() : ';
try {
window.standing_penalties_event_listeners.removeAll();
list.cleanup();
+ list.clear();
archived_list.cleanup();
+ archived_list.clear();
} catch(E) {
var err_prefix = 'standing_penalties.js -> penalty_cleanup() : ';
if (error) error.standard_unexpected_error_alert(err_prefix,E); else alert(err_prefix + E);
'cleanup' : function() {
var obj = this;
- if (typeof obj.group_list != 'undefined') obj.group_list.cleanup();
- if (typeof obj.stat_cat_list != 'undefined') obj.stat_cat_list.cleanup();
+ if (typeof obj.group_list != 'undefined') {
+ obj.group_list.cleanup();
+ obj.group_list.clear();
+ }
+ if (typeof obj.stat_cat_list != 'undefined') {
+ obj.stat_cat_list.cleanup();
+ obj.stat_cat_list.clear();
+ }
obj.controller.cleanup();
obj.event_listeners.removeAll();
},