LP#1086458: add destructor to caption binding
authorGalen Charlton <gmc@esilibrary.com>
Wed, 30 Jan 2013 16:38:33 +0000 (11:38 -0500)
committerBen Shum <bshum@biblio.org>
Mon, 4 Mar 2013 19:49:33 +0000 (14:49 -0500)
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 e823f13..c7881b5 100644 (file)
                                        n.setAttribute('src','chrome://open_ils_staff_client/skin/media/images/opentriangle.gif');
                                ]]>
                        </constructor>
+                       <destructor>
+                               <![CDATA[
+                                       var n = document.getAnonymousNodes(this)[0];
+                                       n.onclick = null;
+                               ]]>
+                       </destructor>
                </implementation>
        </binding>