LP#1086458: add destructor to messagecatalog
authorGalen Charlton <gmc@esilibrary.com>
Wed, 30 Jan 2013 16:24:21 +0000 (11:24 -0500)
committerBen Shum <bshum@biblio.org>
Mon, 4 Mar 2013 19:49:33 +0000 (14:49 -0500)
Based on patch by Jason Etheridge.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/xul/staff_client/chrome/content/main/bindings.xml

index 35f179e..e823f13 100644 (file)
                                ]]>
                        </constructor>
 
+                       <destructor>                                                                                              
+                               <![CDATA[                                                                                         
+                               try {                                                                                                            
+                                       delete this._props;                                                                                      
+                                       delete this.sprintf;                                                                                     
+                               } catch(E) {                                                                                                     
+                                       alert('Error destroying messagecatalog in bindings.xml: ' + E);                                             
+                                       throw(E);                                                                                                    
+                               }                                                                                                                
+                               ]]>                                                                                               
+                       </destructor>  
+
                        <property name="src">
                                <getter>
                                        <![CDATA[